infrastructure/ansible/roles/prometheus/files/prometheus/docker-compose.yml
2024-04-29 14:12:21 +01:00

50 lines
1.2 KiB
YAML

version: "2.3"
services:
prometheus:
image: prom/prometheus:latest
restart: unless-stopped
user: "{{ docker_user.id }}"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- ./alert-rules.d:/etc/prometheus/alert-rules.d:ro
- /mnt/speed/dbs/prometheus/forrest/:/prometheus/
networks:
- default
- grafana
ports:
- "{{ pve_hosts.forrest.ip }}:9090:9090"
blackbox:
image: prom/blackbox-exporter:latest
restart: unless-stopped
user: "{{ docker_user.id }}"
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
proxmox_exporter:
image: prompve/prometheus-pve-exporter:latest
restart: unless-stopped
user: "{{ docker_user.id }}"
environment:
- PVE_USER=prometheus@pve
- PVE_TOKEN_NAME=prometheus
- PVE_TOKEN_VALUE={{ vault_prometheus_api_token }}
- PVE_VERIFY_SSL=false
speedtest_exporter:
image: jraviles/prometheus_speedtest:latest
restart: unless-stopped
user: "{{ docker_user.id }}"
networks:
grafana:
external: true
default:
enable_ipv6: true