27 lines
582 B
YAML
27 lines
582 B
YAML
services:
|
|
loki:
|
|
image: grafana/loki:3.5.3
|
|
container_name: loki
|
|
restart: unless-stopped
|
|
user: root
|
|
ports:
|
|
- "3100:3100"
|
|
command: -config.file=/etc/loki/local-config.yaml
|
|
volumes:
|
|
- /opt/loki/local-config.yaml:/etc/loki/local-config.yaml:ro
|
|
- /opt/loki/data:/loki
|
|
extra_hosts:
|
|
- "host:${HOST_IP}"
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD",
|
|
"wget",
|
|
"--no-verbose",
|
|
"--spider",
|
|
"http://localhost:3100/ready",
|
|
]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|