Run Prometheus as root for file secrets

This commit is contained in:
2026-06-21 22:43:28 +02:00
parent cb80e2d2c0
commit 2bb6eaa267
+1
View File
@@ -2,6 +2,7 @@ services:
prometheus: prometheus:
image: prom/prometheus:v3.12.0@sha256:69f5241418838263316593f7274a304b095c40bcf22e57272865da91bd60a8ac image: prom/prometheus:v3.12.0@sha256:69f5241418838263316593f7274a304b095c40bcf22e57272865da91bd60a8ac
container_name: monitoring-prometheus container_name: monitoring-prometheus
user: "0"
restart: unless-stopped restart: unless-stopped
command: command:
- --config.file=/etc/prometheus/config/prometheus.yml - --config.file=/etc/prometheus/config/prometheus.yml