Monitoring Stack: add loki service & config
This commit is contained in:
parent
479701e003
commit
7a7deddb5d
2 changed files with 90 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue