version: '3.3' services: prometheus: image: 'prom/prometheus:latest' ports: - '9090:9090' command: '--config.file=/etc/prometheus/config.yml' volumes: - './prometheus.yml:/etc/prometheus/config.yml' grafana: image: 'grafana/grafana:latest' ports: - '3000:3000' depends_on: - prometheus