Update for flexible container configuration
- Allow custom image name override via IMAGE env var - Enable container name configuration through NAME env var - Set container user/group via RUN_USER and RUN_GROUP
This commit is contained in:
parent
9a46df7881
commit
4dcc79f7aa
@ -8,7 +8,9 @@ networks:
|
||||
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus:${VERSION:?}
|
||||
image: ${IMAGE:-prom/prometheus}:${VERSION:?}
|
||||
container_name: ${NAME:-prometheus}
|
||||
user: ${RUN_USER:-1000}:${RUN_GROUP:-1000}
|
||||
volumes:
|
||||
- config:/etc/prometheus
|
||||
- data:/prometheus
|
||||
|
Loading…
x
Reference in New Issue
Block a user