homeserver/docker-compose/loki/docker-compose.yml.j2
2024-09-23 21:24:24 +02:00

42 lines
866 B
Django/Jinja

# https://github.com/DoTheEvo/selfhosted-apps-docker/tree/master/prometheus_grafana_loki#Loki
services:
loki:
image: grafana/loki:3.2.0
container_name: loki
restart: always
volumes:
- loki:/loki
- ./loki-config.yml:/etc/loki-config.yml
command:
- '-config.file=/etc/loki-config.yml'
ports:
- "3100:3100"
networks:
- internal
grafana:
image: grafana/grafana:9.4.3
container_name: grafana
restart: always
env_file: grafana.env
volumes:
- grafana:/var/lib/grafana
ports:
- "3101:3000"
networks:
- internal
######## Networks ########
networks:
postfix:
external: true
internal:
######## Volumes ########
volumes:
loki:
grafana:
# TODO: http://vm-test-2204.mgrote.net:9080/targets + wenn firewall aus
# grafana dashboard und datasource als code?