version: '3' services: prometheus: image: prom/prometheus ports: - '9090:9090' volumes: - './prometheus.yml:/etc/prometheus/prometheus.yml' grafana: image: grafana/grafana ports: - '9091:80' - '9092:3000' environment: GF_SECURITY_ADMIN_USER: admin GF_SECURITY_ADMIN_PASSWORD: admin