Update docker-compose.yml
This commit is contained in:
+54
-26
@@ -1,32 +1,60 @@
|
||||
services:
|
||||
services:
|
||||
|
||||
loki:
|
||||
image: grafana/loki:3.3.1
|
||||
image: grafana/loki:3.5.0
|
||||
container_name: loki
|
||||
stdin_open: true
|
||||
tty: true
|
||||
command: -config.file=/etc/loki/local-config.yaml
|
||||
ports:
|
||||
- 3100:3100
|
||||
volumes:
|
||||
- loki_data:/loki
|
||||
- loki_config:/etc/loki
|
||||
networks:
|
||||
- traefk-stack-default
|
||||
- backend
|
||||
command: -config.file=/etc/loki/config.yml
|
||||
restart: unless-stopped
|
||||
# Internal-only; external traefik exposure removed (user 2026-10-04).
|
||||
promtail:
|
||||
...
|
||||
grafana:
|
||||
...
|
||||
|
||||
volumes:
|
||||
loki_data:
|
||||
external: true
|
||||
loki_config:
|
||||
external: true
|
||||
...
|
||||
- loki-data:/loki
|
||||
- ./loki-config.yml:/etc/loki/config.yml:ro
|
||||
|
||||
networks:
|
||||
traefk-stack-default:
|
||||
external: true
|
||||
backend:
|
||||
- logging
|
||||
- grafana
|
||||
|
||||
ports:
|
||||
- "3100:3100"
|
||||
|
||||
|
||||
alloy:
|
||||
image: grafana/alloy:latest
|
||||
container_name: alloy
|
||||
restart: unless-stopped
|
||||
|
||||
command:
|
||||
- run
|
||||
- /etc/alloy/config.alloy
|
||||
- --storage.path=/var/lib/alloy/data
|
||||
|
||||
volumes:
|
||||
- ./alloy-config.alloy:/etc/alloy/config.alloy:ro
|
||||
- alloy-data:/var/lib/alloy/data
|
||||
|
||||
# Docker API - used by Alloy to discover containers
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
|
||||
# Docker container log files
|
||||
- /var/lib/docker/containers:/var/lib/docker/containers:ro
|
||||
|
||||
networks:
|
||||
- logging
|
||||
|
||||
|
||||
volumes:
|
||||
loki-data:
|
||||
alloy-data:
|
||||
|
||||
|
||||
networks:
|
||||
logging:
|
||||
driver: bridge
|
||||
|
||||
# This must be the network used by your existing Grafana stack.
|
||||
#
|
||||
# For example, if your Grafana compose project is called "grafana",
|
||||
# the network is commonly "grafana_default".
|
||||
grafana:
|
||||
external: true
|
||||
name: grafana_default
|
||||
Reference in New Issue
Block a user