Explicitly elevate to root

This commit is contained in:
Joey Hafner 2022-07-14 14:10:08 -07:00
parent fb81db3336
commit ac36fb2b3e

View File

@ -53,6 +53,7 @@ services:
loki: loki:
image: grafana/loki:2.5.0 image: grafana/loki:2.5.0
container_name: monitoring_loki container_name: monitoring_loki
user: 0:0
logging: logging:
driver: loki driver: loki
options: options:
@ -66,7 +67,7 @@ services:
ports: ports:
- "3100:3100" - "3100:3100"
volumes: volumes:
#- ${DOCKER_DATA}/loki-logs:/loki-logs - ${DOCKER_DATA}/loki-logs:/loki-logs
- ./loki-config.yml:/etc/loki/loki-config.yml # not sure if this works. If not, just edit the config within the data volume - ./loki-config.yml:/etc/loki/loki-config.yml # not sure if this works. If not, just edit the config within the data volume
restart: "no" restart: "no"
command: -config.file=/etc/loki/loki-config.yml command: -config.file=/etc/loki/loki-config.yml