You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.5 KiB

version: '3.7'
services:
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
- /home/cristian/prometheus_project/prometheus/:/etc/prometheus/
command:
- '--config.file=/etc/prometheus/prometheus.yml'
links:
- blackbox_exporter:blackbox_exporter
- alertmanager:alertmanager
blackbox_exporter:
image: prom/blackbox-exporter:latest
ports:
- "9115:9115"
volumes:
- /home/cristian/prometheus_project/blackbox/blackbox.yml:/etc/prometheus/blackbox.yml
command:
- '--config.file=/etc/prometheus/blackbox.yml'
alertmanager:
image: prom/alertmanager:latest
ports:
- "9093:9093"
volumes:
- /home/cristian/prometheus_project/alert_manager/alertmanager.yml:/etc/prometheus/alertmanager.yml
command:
- '--config.file=/etc/prometheus/alertmanager.yml'
grafana:
image: grafana/grafana:latest
#depends_on:
# - prometheus
ports:
- 3000:3000
#volumes:
#- /home/cristian/prometheus_project/grafana_data/:/var/lib/grafana/