Monitoring Stack: add loki service & config

This commit is contained in:
Aroy-Art 2025-02-04 15:14:29 +01:00
parent 479701e003
commit 7a7deddb5d
Signed by: Aroy
GPG key ID: 583642324A1D2070
2 changed files with 90 additions and 0 deletions

View file

@ -30,3 +30,26 @@ services:
- 8225:8125/udp
- 8226:8126
restart: unless-stopped
##############################################
# Loki
# Docs: https://grafana.com/docs/loki/latest/
# GitHub: https://github.com/grafana/loki
# Dokcer Hub: https://hub.docker.com/r/grafana/loki
##############################################
loki:
image: grafana/loki:3.3.2
restart: unless-stopped
networks:
- monitoring
ports:
- "3100:3100"
volumes:
- ${DATADIR}/Loki/Config/loki-config.yaml:/etc/loki/loki-config.yaml
- ${DATADIR}/Loki/Data:/data/loki
command: -config.file=/etc/loki/loki-config.yaml
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"
max-size: "200m"