loki: restart policy
This commit is contained in:
parent
f599957314
commit
cbd70bdcad
@ -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: {}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user