Run prometheus stack as docker user

This commit is contained in:
Jake Howard 2022-12-05 21:17:23 +00:00
parent 53c969f2b8
commit 772cf7536a
Signed by: jake
GPG Key ID: 57AFB45680EDD477

View File

@ -4,6 +4,7 @@ services:
prometheus:
image: prom/prometheus:latest
restart: unless-stopped
user: "{{ docker_user.id }}"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- /mnt/tank/dbs/prometheus/forrest/:/prometheus/
@ -16,12 +17,14 @@ services:
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
user: "{{ docker_user.id }}"
volumes:
- ./alertmanager.yml:/etc/alertmanager/alertmanager.yml:ro