Run prometheus stack as docker user
This commit is contained in:
parent
53c969f2b8
commit
772cf7536a
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,7 @@ services:
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus:latest
|
image: prom/prometheus:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
user: "{{ docker_user.id }}"
|
||||||
volumes:
|
volumes:
|
||||||
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
||||||
- /mnt/tank/dbs/prometheus/forrest/:/prometheus/
|
- /mnt/tank/dbs/prometheus/forrest/:/prometheus/
|
||||||
|
@ -16,12 +17,14 @@ services:
|
||||||
blackbox:
|
blackbox:
|
||||||
image: prom/blackbox-exporter:latest
|
image: prom/blackbox-exporter:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
user: "{{ docker_user.id }}"
|
||||||
volumes:
|
volumes:
|
||||||
- ./blackbox.yml:/etc/blackbox_exporter/config.yml:ro
|
- ./blackbox.yml:/etc/blackbox_exporter/config.yml:ro
|
||||||
|
|
||||||
alertmanager:
|
alertmanager:
|
||||||
image: prom/alertmanager:latest
|
image: prom/alertmanager:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
user: "{{ docker_user.id }}"
|
||||||
volumes:
|
volumes:
|
||||||
- ./alertmanager.yml:/etc/alertmanager/alertmanager.yml:ro
|
- ./alertmanager.yml:/etc/alertmanager/alertmanager.yml:ro
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue