Run as a user

This commit is contained in:
2025-01-21 16:18:51 -05:00
parent 9a46df7881
commit 24b0fbe818

View File

@@ -9,6 +9,7 @@ networks:
services:
prometheus:
image: prom/prometheus:${VERSION:?}
user: ${RUN_USER:-1000}:${RUN_GROUP:-1000}
volumes:
- config:/etc/prometheus
- data:/prometheus