configure persisent storage

This commit is contained in:
2025-10-12 16:49:47 +02:00
parent 281af93e60
commit a40b4e8ef1
2 changed files with 31 additions and 39 deletions

View File

@@ -3,11 +3,12 @@ services:
image: grafana/loki:3.5.3
container_name: loki
restart: always
user: root
ports:
- "3100:3100"
# command: -config.file=/etc/loki/local-config.yaml
# volumes:
# - /opt/loki/local-config.yaml:/etc/loki/local-config.yaml:ro
# - /opt/loki/data:/loki
command: -config.file=/etc/loki/local-config.yaml
volumes:
- /opt/loki/local-config.yaml:/etc/loki/local-config.yaml:ro
- /opt/loki/data:/loki
extra_hosts:
- host:192.168.2.200