Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mgheorghe authored Jul 15, 2022
1 parent 6aa309a commit ea790bf
Showing 1 changed file with 27 additions and 22 deletions.
49 changes: 27 additions & 22 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
prometheus:
image: prom/prometheus:latest
container_name: ixnetwork_prometheus
depends_on:
- "grafana"
- "ixnetwork"
restart: unless-stopped
volumes:
- ./data/prometheus/config:/etc/prometheus/
- ./data/prometheus/data:/prometheus
command:
- '-config.file=/etc/prometheus/prometheus.yml'
- '-storage.local.path=/prometheus'
- '-alertmanager.url=http://alertmanager:9093'
expose:
- 9090
ports:
- 9090:9090
links:
- cadvisor:cadvisor
- node-exporter:node-exporter
services:
prometheus:
image: prom/prometheus:latest
container_name: ixnetwork_prometheus
depends_on:
- "ixnetwork"
restart: unless-stopped
volumes:
- ./data/prometheus/config:/etc/prometheus/
- ./data/prometheus/data:/prometheus
command:
- '-config.file=/etc/prometheus/prometheus.yml'
- '-storage.local.path=/prometheus'
- '-alertmanager.url=http://alertmanager:9093'
expose:
- 9090
ports:
- 9090:9090
links:
- node-exporter:node-exporter

node-exporter:
image: prom/node-exporter:latest
container_name: ixnetwork_node_exporter
restart: unless-stopped
expose:
- 9100

grafana:
image: grafana/grafana:latest
container_name: ixnetwork_grafana
restart: unless-stopped
expose:
- 3000
ports:
- 3000:3000
links:
- prometheus:prometheus
volumes:
Expand All @@ -53,8 +56,10 @@ prometheus:
privileged: true
expose:
- 11009
- 443
ports:
- 11009:11009
- 443:443
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
- /var/crash/:/var/crash
Expand Down

0 comments on commit ea790bf

Please sign in to comment.