34 lines
767 B
YAML
34 lines
767 B
YAML
|
|
|
||
|
|
version: '3.8'
|
||
|
|
|
||
|
|
services:
|
||
|
|
loki:
|
||
|
|
image: grafana/loki:latest
|
||
|
|
container_name: loki
|
||
|
|
ports:
|
||
|
|
- "3100:3100"
|
||
|
|
volumes:
|
||
|
|
- /home/server-admin/loki-stack/loki-config.yaml:/etc/loki/local-config.yaml
|
||
|
|
command: -config.file=/etc/loki/local-config.yaml
|
||
|
|
networks:
|
||
|
|
- monitoring-net
|
||
|
|
restart: unless-stopped
|
||
|
|
|
||
|
|
promtail:
|
||
|
|
image: grafana/promtail:latest
|
||
|
|
container_name: promtail
|
||
|
|
volumes:
|
||
|
|
- /home/server-admin/loki-stack/promtail-config.yaml:/etc/promtail/config.yaml
|
||
|
|
ports:
|
||
|
|
- "1514:1514" # Syslog port exposed to the host
|
||
|
|
- "9080:9080"
|
||
|
|
command: -config.file=/etc/promtail/config.yaml
|
||
|
|
networks:
|
||
|
|
- monitoring-net
|
||
|
|
restart: unless-stopped
|
||
|
|
|
||
|
|
networks:
|
||
|
|
monitoring-net:
|
||
|
|
external: true
|
||
|
|
|