Add loki and alloy for log monitoring

This commit is contained in:
Peter Smit
2026-01-20 11:35:39 +01:00
parent 969b16136a
commit eba54706d1
2 changed files with 25 additions and 0 deletions

View File

@@ -40,6 +40,26 @@ services:
depends_on:
- prometheus
loki:
image: grafana/loki:3.6.3
restart: unless-stopped
ports:
- "3100:3100"
volumes:
- ${LOKI_CONFIG_PATH}:/etc/loki/local-config.yaml
- ${LOKI_DATA_DIR}:/loki
command:
- '-config.file=/etc/loki/local-config.yaml -target=all'
alloy:
image: grafana/alloy:1.12.2
restart: unless-stopped
ports:
- "12345:12345"
volumes:
- ${ALLOY_CONFIG_PATH}:/etc/alloy/config.alloy:ro
- /var/log:/var/log:ro
# Node Exporter - Host System Metrics
node_exporter:
image: prom/node-exporter:v1.10.2