network-monitor/docker-compose.yml

75 lines
1.5 KiB
YAML
Raw Normal View History

version: "3.1"
2017-02-21 12:39:50 +00:00
volumes:
2021-07-05 13:52:48 +00:00
prometheus_data: {}
grafana_data: {}
2017-02-21 12:39:50 +00:00
networks:
front-tier:
back-tier:
services:
prometheus:
2021-07-05 13:52:48 +00:00
image: prom/prometheus:v2.25.2
restart: always
2017-02-21 12:39:50 +00:00
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
2017-02-21 12:39:50 +00:00
ports:
- 9090:9090
links:
2021-07-06 23:03:05 +00:00
- blackbox:blackbox
2018-10-01 16:31:07 +00:00
- speedtest:speedtest
2017-02-21 12:39:50 +00:00
networks:
- back-tier
grafana:
image: grafana/grafana
2021-07-05 13:52:48 +00:00
restart: always
2018-10-01 16:31:07 +00:00
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
2017-02-21 12:39:50 +00:00
depends_on:
- prometheus
ports:
2021-07-06 23:06:23 +00:00
- 3000:3000
2017-02-21 12:39:50 +00:00
env_file:
- ./grafana/config.monitoring
- ./grafana/auth.env
2017-02-21 12:39:50 +00:00
networks:
- back-tier
- front-tier
2021-07-05 13:52:48 +00:00
2021-07-06 23:03:05 +00:00
blackbox:
2017-02-21 12:39:50 +00:00
tty: true
stdin_open: true
expose:
2018-10-01 10:48:41 +00:00
- 9115
ports:
2018-10-01 10:48:41 +00:00
- 9115:9115
image: prom/blackbox-exporter
2021-07-05 13:52:48 +00:00
restart: always
2018-10-01 16:31:07 +00:00
volumes:
- ./blackbox/config:/config
command:
- '--config.file=/config/blackbox.yml'
2018-10-01 10:48:41 +00:00
networks:
- back-tier
speedtest:
tty: true
stdin_open: true
expose:
2021-07-05 13:52:48 +00:00
- 9798
2018-10-01 10:48:41 +00:00
ports:
2021-07-05 13:52:48 +00:00
- 9798:9798
image: miguelndecarvalho/speedtest-exporter
2018-10-07 22:02:55 +00:00
restart: always
2017-02-21 12:39:50 +00:00
networks:
- back-tier