添加 docker-compose/prometheus/alertmanager/alertmanage.yaml
This commit is contained in:
22
docker-compose/prometheus/alertmanager/alertmanage.yaml
Normal file
22
docker-compose/prometheus/alertmanager/alertmanage.yaml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
version: '3.8'
|
||||||
|
services:
|
||||||
|
alertmanager:
|
||||||
|
image: prom/alertmanager:v0.31.0
|
||||||
|
container_name: alertmanager
|
||||||
|
volumes:
|
||||||
|
- ./config/alertmanager.yml:/etc/alertmanager/alertmanager.yml:ro
|
||||||
|
- ./templates/:/etc/templates/:ro
|
||||||
|
- ./data:/data
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "9093:9093"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:9093/-/healthy"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 3
|
||||||
|
start_period: 10s
|
||||||
|
command:
|
||||||
|
- --config.file=/etc/alertmanager/alertmanager.yml
|
||||||
|
- --storage.path=/data
|
||||||
|
- --web.external-url=http://0.0.0.0:9093
|
||||||
Reference in New Issue
Block a user