services: prometheus: image: prom/prometheus:v2.52.0 container_name: prometheus ports: - "9098:9090" volumes: - ./prometheus.yml:/etc/prometheus/prometheus.yml networks: - monitoring restart: unless-stopped networks: monitoring: external: true