loki: add
This commit is contained in:
parent
3fb35d3256
commit
f599957314
@ -6,7 +6,7 @@ services:
|
|||||||
container_name: loki # Names the container for easier management.
|
container_name: loki # Names the container for easier management.
|
||||||
volumes:
|
volumes:
|
||||||
- ./loki-config.yaml:/mnt/config/loki-config.yaml # Mounts the Loki configuration file.
|
- ./loki-config.yaml:/mnt/config/loki-config.yaml # Mounts the Loki configuration file.
|
||||||
- ./data:/tmp
|
- loki_data:/tmp
|
||||||
ports:
|
ports:
|
||||||
- "4118:3100" # Maps port 3100 on the host to port 3100 in the container.
|
- "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.
|
command: -config.file=/mnt/config/loki-config.yaml # Runs Loki with the specified configuration file.
|
||||||
@ -20,3 +20,6 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- loki # Ensures Promtail starts after Loki.
|
- loki # Ensures Promtail starts after Loki.
|
||||||
command: -config.file=/mnt/config/promtail-config.yaml # Runs Promtail with the specified configuration file.
|
command: -config.file=/mnt/config/promtail-config.yaml # Runs Promtail with the specified configuration file.
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
loki_data: {}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user