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

31 lines
688 B
YAML

version: "2.3"
services:
prometheus:
image: prom/prometheus:latest
restart: unless-stopped
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- /mnt/tank/dbs/prometheus/forrest/:/prometheus/
networks:
- default
- grafana
ports:
- "{{ pve_hosts.forrest.ip }}:9090:9090"
blackbox:
image: prom/blackbox-exporter:latest
restart: unless-stopped
volumes:
- ./blackbox.yml:/etc/blackbox_exporter/config.yml:ro
alertmanager:
image: prom/alertmanager:latest
restart: unless-stopped
volumes:
- ./alertmanager.yml:/etc/alertmanager/alertmanager.yml:ro
networks:
grafana:
external: true