services: prometheus: image: ${PROMETHEUS_IMAGE:-prom/prometheus:latest} ports: - "9090:9090" volumes: - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro grafana: image: ${GRAFANA_IMAGE:-grafana/grafana:latest} ports: - "3001:3000" environment: GF_SECURITY_ADMIN_USER: admin GF_SECURITY_ADMIN_PASSWORD: admin depends_on: - prometheus