Set up three-tier synchronization: Syncthing (real-time), GitHub (version control), rsync (disaster recovery). Includes complete documentation for future Claude sessions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
35 lines
824 B
YAML
35 lines
824 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
loki:
|
|
image: grafana/loki:latest
|
|
container_name: loki
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3100:3100"
|
|
command: -config.file=/etc/loki/local-config.yaml
|
|
volumes:
|
|
- loki-data:/loki
|
|
- ./loki-config.yaml:/etc/loki/local-config.yaml
|
|
networks:
|
|
- monitoring_monitoring
|
|
|
|
promtail:
|
|
image: grafana/promtail:latest
|
|
container_name: promtail
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /var/lib/docker/containers:/var/lib/docker/containers:ro
|
|
- /opt:/opt:ro
|
|
- ./promtail-config.yaml:/etc/promtail/config.yaml
|
|
command: -config.file=/etc/promtail/config.yaml
|
|
networks:
|
|
- monitoring_monitoring
|
|
|
|
volumes:
|
|
loki-data:
|
|
|
|
networks:
|
|
monitoring_monitoring:
|
|
external: true
|