38 lines
747 B
Django/Jinja
38 lines
747 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:
|