stack-orchestrator/stack_orchestrator/data/compose/docker-compose-prom-server.yml

23 lines
458 B
YAML
Raw Normal View History

version: "3.7"
services:
prometheus:
image: prom/prometheus
restart: always
volumes:
- ../config/monitoring/prometheus:/etc/prometheus
- prometheus_data:/prometheus
ports:
- "9090"
healthcheck:
test: ["CMD", "nc", "-vz", "localhost", "9090"]
interval: 30s
timeout: 5s
retries: 10
start_period: 3s
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
prometheus_data: