homeserver/docker-compose/loki/docker-compose.yml.j2

43 lines
857 B
Text
Raw Normal View History

2024-09-23 20:48:45 +02:00
# https://github.com/DoTheEvo/selfhosted-apps-docker/tree/master/prometheus_grafana_loki#Loki
services:
loki:
2024-09-23 21:04:06 +02:00
image: grafana/loki:3.2.0
2024-09-23 20:48:45 +02:00
container_name: loki
restart: always
volumes:
2024-09-23 20:59:25 +02:00
- loki:/loki
2024-09-23 20:48:45 +02:00
- ./loki-config.yml:/etc/loki-config.yml
command:
- '-config.file=/etc/loki-config.yml'
ports:
- "3100:3100"
2024-09-23 20:59:25 +02:00
networks:
- internal
# labels:
# org.label-schema.group: "monitoring"
grafana:
image: grafana/grafana:9.4.3
container_name: grafana
restart: always
2024-09-23 21:02:45 +02:00
env_file: grafana.env
2024-09-23 20:59:25 +02:00
volumes:
- grafana:/var/lib/grafana
expose:
- "3101"
networks:
- internal
2024-09-23 20:48:45 +02:00
# labels:
# org.label-schema.group: "monitoring"
######## Networks ########
networks:
2024-09-23 20:59:25 +02:00
postfix:
external: true
internal:
2024-09-23 20:48:45 +02:00
######## Volumes ########
volumes:
2024-09-23 20:59:25 +02:00
loki:
grafana: