From 772cf7536a27dd6cdef2ad0fd18fa45231edc455 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 5 Dec 2022 21:17:23 +0000 Subject: [PATCH] Run prometheus stack as docker user --- ansible/roles/forrest/files/prometheus/docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/roles/forrest/files/prometheus/docker-compose.yml b/ansible/roles/forrest/files/prometheus/docker-compose.yml index 251b522..0457055 100644 --- a/ansible/roles/forrest/files/prometheus/docker-compose.yml +++ b/ansible/roles/forrest/files/prometheus/docker-compose.yml @@ -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