Run as a user
This commit is contained in:
parent
9a46df7881
commit
24b0fbe818
@ -9,6 +9,7 @@ networks:
|
|||||||
services:
|
services:
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus:${VERSION:?}
|
image: prom/prometheus:${VERSION:?}
|
||||||
|
user: ${RUN_USER:-1000}:${RUN_GROUP:-1000}
|
||||||
volumes:
|
volumes:
|
||||||
- config:/etc/prometheus
|
- config:/etc/prometheus
|
||||||
- data:/prometheus
|
- data:/prometheus
|
||||||
|
Loading…
x
Reference in New Issue
Block a user