添加 docker-compose/prometheus/loki/loki.yaml
This commit is contained in:
28
docker-compose/prometheus/loki/loki.yaml
Normal file
28
docker-compose/prometheus/loki/loki.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
loki:
|
||||
image: grafana/loki:3.6.4
|
||||
container_name: loki
|
||||
restart: always
|
||||
ports:
|
||||
- "3100:3100"
|
||||
volumes:
|
||||
- ./loki/config/config.yaml:/etc/loki/config.yaml
|
||||
- ./loki/data:/loki/data
|
||||
command:
|
||||
- "--config.file=/etc/loki/config.yaml"
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1'
|
||||
memory: 1G
|
||||
reservations:
|
||||
cpus: '0.2'
|
||||
memory: "256M"
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 50m
|
||||
max-file: 3
|
||||
Reference in New Issue
Block a user