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

42 lines
857 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
# labels:
# org.label-schema.group: "monitoring"
grafana:
image: grafana/grafana:9.4.3
container_name: grafana
restart: always
env_file: grafana.env
volumes:
- grafana:/var/lib/grafana
expose:
- "3101"
networks:
- internal
# labels:
# org.label-schema.group: "monitoring"
######## Networks ########
networks:
postfix:
external: true
internal:
######## Volumes ########
volumes:
loki:
grafana: