Update docker-compose.yml
This commit is contained in:
+53
-25
@@ -1,32 +1,60 @@
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
loki:
|
loki:
|
||||||
image: grafana/loki:3.3.1
|
image: grafana/loki:3.5.0
|
||||||
container_name: loki
|
container_name: loki
|
||||||
stdin_open: true
|
command: -config.file=/etc/loki/config.yml
|
||||||
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
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# Internal-only; external traefik exposure removed (user 2026-10-04).
|
|
||||||
promtail:
|
|
||||||
...
|
|
||||||
grafana:
|
|
||||||
...
|
|
||||||
volumes:
|
volumes:
|
||||||
loki_data:
|
- loki-data:/loki
|
||||||
external: true
|
- ./loki-config.yml:/etc/loki/config.yml:ro
|
||||||
loki_config:
|
|
||||||
external: true
|
|
||||||
...
|
|
||||||
networks:
|
networks:
|
||||||
traefk-stack-default:
|
- logging
|
||||||
external: true
|
- grafana
|
||||||
backend:
|
|
||||||
|
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
|
external: true
|
||||||
|
name: grafana_default
|
||||||
Reference in New Issue
Block a user