practica-loki-grafana/6-2-grafana-alerts/docker-compose.yml

30 lines
586 B
YAML
Raw Normal View History

2022-04-28 10:34:23 +02:00
version: "3.9"
services:
grafana:
image: "grafana/grafana:8.4.2"
ports:
- "3000:3000"
volumes:
- ./provisioning:/etc/grafana/provisioning
environment:
- GF_SMTP_ENABLED=true
- GF_SMTP_HOST=mail:1025
loki:
image: "grafana/loki:2.4.2"
command: --config.file=/mnt/config/loki.yml
ports:
- "3100:3100"
volumes:
- ./loki.yml:/mnt/config/loki.yml
- ./rules.yml:/etc/loki/rules/fake/rules.yml
mail:
image: "dockage/mailcatcher:0.7.1"
ports:
- "1080:1080"
- "1025:1025"
volumes:
logs_dir: