-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
120 lines (107 loc) · 2.75 KB
/
Copy pathcompose.yaml
File metadata and controls
120 lines (107 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
services:
loki:
image: grafana/loki:3.7.1
container_name: loki
restart: unless-stopped
user: "3001:3001"
security_opt:
- no-new-privileges:true
networks:
- monitoring
- traefik
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.loki.rule=Host(`${LOKI_DOMAIN}`)"
- "traefik.http.routers.loki.entrypoints=websecure"
- "traefik.http.routers.loki.tls.certresolver=letsencrypt"
- "traefik.http.routers.loki.middlewares=secure-headers@file,lan-only@file"
- "traefik.http.routers.loki.service=loki@docker"
- "traefik.http.services.loki.loadbalancer.server.port=3100"
ports:
- "${LOKI_PORT:-3100}:3100"
volumes:
- loki-data:/loki
configs:
- source: loki-config
target: /etc/loki/config.yaml
command: -config.file=/etc/loki/config.yaml
healthcheck:
test: ["CMD", "/usr/bin/loki", "-version"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
configs:
loki-config:
content: |
auth_enabled: false
server:
http_listen_port: 3100
grpc_listen_port: 9096
log_level: warn
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: 2024-01-01
store: tsdb
object_store: filesystem
schema: v13
index:
prefix: index_
period: 24h
limits_config:
retention_period: 30d
reject_old_samples: true
reject_old_samples_max_age: 168h
ingestion_rate_strategy: local
ingestion_rate_mb: 16
ingestion_burst_size_mb: 32
compactor:
working_directory: /loki/compactor
retention_enabled: true
delete_request_store: filesystem
ingester:
lifecycler:
address: 127.0.0.1
ring:
kvstore:
store: inmemory
replication_factor: 1
final_sleep: 0s
min_ready_duration: 0s
query_range:
results_cache:
cache:
embedded_cache:
enabled: true
max_size_mb: 100
volumes:
loki-data:
driver: local
driver_opts:
type: none
device: /mnt/SSD/Containers/loki
o: bind
networks:
monitoring:
name: monitoring
external: true
traefik:
name: traefik
external: true