Add configuration files and compose setups for Grafana Alloy, Backrest, Loki, and Prometheus

This commit is contained in:
dominikhoebert
2025-07-09 15:48:05 +02:00
parent f43daa15b1
commit c2d28fcc12
8 changed files with 344 additions and 1 deletions

47
loki/compose.yml Normal file
View File

@@ -0,0 +1,47 @@
name: loki
services:
loki:
container_name: loki
image: docker.io/grafana/loki
command: "-config.file=/etc/loki/config.yaml"
ports:
# --> (Optional) Remove when using traefik...
- "3100:3100"
# <--
volumes:
- ./config/config.yaml:/etc/loki/config.yaml:ro
- data_loki:/loki:rw
# --> (Optional) When using traefik...
# labels:
# - traefik.enable=true
# # -- Traefik Services
# - traefik.http.services.loki.loadbalancer.server.port=3100
# # -- Traefik Routers
# - traefik.http.routers.loki.entrypoints=websecure
# - traefik.http.routers.loki.rule=Host(`loki-fqdn`)
# - traefik.http.routers.loki.tls=true
# - traefik.http.routers.loki.tls.certresolver=cloudflare
# - traefik.http.routers.loki.service=loki
# # -- (Optional) Authentication
# # - traefik.http.routers.loki.middlewares=authentik-middleware@file
# networks:
# - frontend
# <--
restart: unless-stopped
networks:
- proxy
networks:
proxy:
external: true
volumes:
data_loki:
driver: local
# --> (Optional) When using traefik...
# networks:
# frontend:
# external: true
# <--