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: {}