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