From cbd70bdcad38b77f12adde9eb98dbd3b01089db0 Mon Sep 17 00:00:00 2001 From: Schneider Roland Date: Fri, 1 Nov 2024 13:58:18 +0100 Subject: [PATCH] loki: restart policy --- loki/docker-compose/loki/docker-compose.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loki/docker-compose/loki/docker-compose.yaml b/loki/docker-compose/loki/docker-compose.yaml index f40feb0..86522f2 100644 --- a/loki/docker-compose/loki/docker-compose.yaml +++ b/loki/docker-compose/loki/docker-compose.yaml @@ -10,6 +10,7 @@ services: 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. + restart: unless-stopped promtail: image: grafana/promtail:3.0.0 # Specifies the Promtail Docker image and version. @@ -20,6 +21,7 @@ services: depends_on: - loki # Ensures Promtail starts after Loki. command: -config.file=/mnt/config/promtail-config.yaml # Runs Promtail with the specified configuration file. + restart: unless-stopped volumes: loki_data: {}