mirror of
https://github.com/dominikhoebert/docker-projects.git
synced 2026-01-19 22:36:17 +00:00
Add configuration files and compose setups for Grafana Alloy, Backrest, Loki, and Prometheus
This commit is contained in:
47
loki/compose.yml
Normal file
47
loki/compose.yml
Normal 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
|
||||
# <--
|
||||
Reference in New Issue
Block a user