services: prometheus: image: prom/prometheus:latest container_name: prometheus networks: nw-caddy: extra_hosts: - "host.docker.internal:host-gateway" volumes: - ./config:/etc/prometheus command: - '--config.file=/etc/prometheus/prometheus.yaml' - '--storage.tsdb.path=/prometheus' restart: unless-stopped