mirror of
https://github.com/dominikhoebert/docker-projects.git
synced 2025-10-10 16:46: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
|
||||
# <--
|
30
loki/config/config.yaml
Normal file
30
loki/config/config.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
auth_enabled: false
|
||||
|
||||
server:
|
||||
http_listen_port: 3100
|
||||
|
||||
common:
|
||||
instance_addr: 127.0.0.1
|
||||
path_prefix: /loki
|
||||
storage:
|
||||
filesystem:
|
||||
chunks_directory: /loki/chunks
|
||||
rules_directory: /loki/rules
|
||||
replication_factor: 1
|
||||
ring:
|
||||
kvstore:
|
||||
store: inmemory
|
||||
|
||||
schema_config:
|
||||
configs:
|
||||
- from: 2020-10-24
|
||||
store: tsdb
|
||||
object_store: filesystem
|
||||
schema: v13
|
||||
index:
|
||||
prefix: index_
|
||||
period: 24h
|
||||
|
||||
ruler:
|
||||
alertmanager_url: http://localhost:9093
|
Reference in New Issue
Block a user