Browse Source

update

master
yutsuo 4 years ago
parent
commit
a137b58015
  1. 28
      docker-compose.yml

28
docker-compose.yml

@ -6,17 +6,6 @@ services:
ports: ports:
- "9100:9100" - "9100:9100"
prometheus:
container_name: prometheus
image: prom/prometheus:latest
network_mode: bridge
ports:
- "9090:9090"
env_file:
- ./.env
volumes:
- /home/yutsuo/forge/monitor/prometheus.yml:/etc/prometheus/prometheus.yml
grafana: grafana:
container_name: grafana container_name: grafana
image: grafana/grafana:latest image: grafana/grafana:latest
@ -30,4 +19,19 @@ services:
context: ../prometheus-data-generator/ context: ../prometheus-data-generator/
network_mode: bridge network_mode: bridge
volumes: volumes:
- ../prometheus-data-generator/config.yml:/config.yml - ../prometheus-data-generator/config.yml:/config.yml
prometheus:
container_name: prometheus
image: prom/prometheus:latest
depends_on:
- node-exporter
- data-generator
network_mode: bridge
ports:
- "9090:9090"
env_file:
- ./.env
volumes:
- /home/yutsuo/forge/monitor/prometheus.yml:/etc/prometheus/prometheus.yml
Loading…
Cancel
Save