github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/deployments/engine/docker-compose/1prometheus.yaml (about) 1 version: '2.3' 2 3 networks: 4 monitor-dfe: 5 driver: bridge 6 7 services: 8 prometheus: 9 image: prom/prometheus:latest 10 container_name: prometheus 11 hostname: prometheus 12 restart: unless-stopped 13 volumes: 14 - './config/prometheus.yml:/etc/prometheus/prometheus.yml' 15 - '/tmp/prometheus:/prometheus' 16 command: 17 - '--config.file=/etc/prometheus/prometheus.yml' 18 - '--storage.tsdb.path=/prometheus' 19 - '--web.console.libraries=/etc/prometheus/console_libraries' 20 - '--web.console.templates=/etc/prometheus/consoles' 21 - '--web.enable-lifecycle' 22 ports: 23 - "9090:9090" 24 networks: 25 - monitor-dfe 26 extra_hosts: 27 - "host.docker.internal:host-gateway" 28 29 alertmanager: 30 image: prom/alertmanager:latest 31 container_name: alertmanager 32 volumes: 33 - './config/alertmanager.yml:/etc/alertmanager/config.yml' 34 - '/tmp/alertmanager:/alertmanager' 35 command: 36 - '--config.file=/etc/alertmanager/config.yml' 37 - '--storage.path=/alertmanager' 38 restart: unless-stopped 39 networks: 40 - monitor-dfe 41 ports: 42 - "9093:9093" 43 depends_on: 44 - prometheus 45 46 grafana: 47 image: grafana/grafana-oss:latest 48 container_name: grafana 49 volumes: 50 - '/tmp/grafana:/var/lib/grafana' 51 restart: unless-stopped 52 networks: 53 - monitor-dfe 54 ports: 55 - "3000:3000" 56 depends_on: 57 - prometheus