From f59995731447ab34a94dc5c97a24715d0f6948ec Mon Sep 17 00:00:00 2001 From: Schneider Roland Date: Sun, 27 Oct 2024 16:20:38 +0100 Subject: [PATCH] loki: add --- loki/docker-compose/loki/docker-compose.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/loki/docker-compose/loki/docker-compose.yaml b/loki/docker-compose/loki/docker-compose.yaml index b092e0b..f40feb0 100644 --- a/loki/docker-compose/loki/docker-compose.yaml +++ b/loki/docker-compose/loki/docker-compose.yaml @@ -6,7 +6,7 @@ services: container_name: loki # Names the container for easier management. volumes: - ./loki-config.yaml:/mnt/config/loki-config.yaml # Mounts the Loki configuration file. - - ./data:/tmp + - loki_data:/tmp ports: - "4118:3100" # Maps port 3100 on the host to port 3100 in the container. command: -config.file=/mnt/config/loki-config.yaml # Runs Loki with the specified configuration file. @@ -20,3 +20,6 @@ services: depends_on: - loki # Ensures Promtail starts after Loki. command: -config.file=/mnt/config/promtail-config.yaml # Runs Promtail with the specified configuration file. + +volumes: + loki_data: {}