Run as a user

This commit is contained in:
Kris Lamoureux 2025-01-21 16:18:51 -05:00
parent 9a46df7881
commit 24b0fbe818
Signed by: kris
GPG Key ID: 105B748C1362EB96

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