summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-01 17:21:15 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-01 17:21:15 +0900
commit7388b83e7aac55ec7d8872ce58794b29b33c6522 (patch)
treeeba444fed0e10963e86232f4c172225e0d7ab947 /docker-compose.yml
parent3c880c4de185aa44c3672687497aea269bbec220 (diff)
feat(monitoring): add Loki + Promtail for log aggregation
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 473e2bc..c55b83b 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -103,6 +103,26 @@ services:
retries: 3
restart: unless-stopped
+ loki:
+ image: grafana/loki:latest
+ profiles: ["monitoring"]
+ ports:
+ - "3100:3100"
+ volumes:
+ - ./monitoring/loki/loki-config.yaml:/etc/loki/local-config.yaml
+ - loki_data:/loki
+ command: -config.file=/etc/loki/local-config.yaml
+
+ promtail:
+ image: grafana/promtail:latest
+ profiles: ["monitoring"]
+ volumes:
+ - ./monitoring/promtail/promtail-config.yaml:/etc/promtail/config.yaml
+ - /var/run/docker.sock:/var/run/docker.sock:ro
+ command: -config.file=/etc/promtail/config.yaml
+ depends_on:
+ - loki
+
prometheus:
image: prom/prometheus:latest
profiles: ["monitoring"]
@@ -127,3 +147,4 @@ services:
volumes:
redis_data:
postgres_data:
+ loki_data: