infrastructure/ansible/roles/forrest/files/prometheus/docker-compose.yml

31 lines
688 B
YAML
Raw Normal View History

2021-03-04 14:53:03 +00:00
version: "2.3"
services:
prometheus:
image: prom/prometheus:latest
restart: unless-stopped
volumes:
2022-12-05 21:12:55 +00:00
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
2021-03-04 14:53:03 +00:00
- /mnt/tank/dbs/prometheus/forrest/:/prometheus/
networks:
- default
- grafana
ports:
- "{{ pve_hosts.forrest.ip }}:9090:9090"
2021-03-04 14:53:03 +00:00
blackbox:
image: prom/blackbox-exporter:latest
restart: unless-stopped
volumes:
2022-12-05 21:12:55 +00:00
- ./blackbox.yml:/etc/blackbox_exporter/config.yml:ro
2022-12-05 21:10:41 +00:00
alertmanager:
image: prom/alertmanager:latest
restart: unless-stopped
volumes:
2022-12-05 21:12:55 +00:00
- ./alertmanager.yml:/etc/alertmanager/alertmanager.yml:ro
2022-12-05 21:10:41 +00:00
2021-03-04 14:53:03 +00:00
networks:
grafana:
external: true