Skip to content

Commit

Permalink
add loki & promtail
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Jan 24, 2024
1 parent 938ef46 commit 578998c
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ services:
- "4317:4317" # otlp grpc
- "4318:4318" # otlp http
- "9411:9411" # zipkin
networks:
- overlay

# Prometheus Container
prometheus_svc:
Expand All @@ -28,8 +30,6 @@ services:
- prometheus_data:/prometheus
ports:
- 9090:9090
depends_on:
- tempo_svc
restart: unless-stopped
networks:
- overlay
Expand All @@ -47,8 +47,26 @@ services:
- ./configs/grafana/grafana.ini:/etc/grafana/grafana.ini
- grafana_data:/var/lib/grafana
- grafana_logs:/var/log/grafana
depends_on:
- prometheus_svc
restart: unless-stopped
networks:
- overlay

# Loki Container
loki_svc:
image: grafana/loki:2.9.3
ports:
- 3100:3100
command: -config.file=/etc/loki/local-config.yaml
restart: unless-stopped
networks:
- overlay

# Promtail Container
promtail_svc:
image: grafana/promtail:2.9.3
volumes:
- './var/logs/:/var/log'
command: -config.file=/etc/promtail/config.yml
restart: unless-stopped
networks:
- overlay
Expand Down

0 comments on commit 578998c

Please sign in to comment.