Update docker-compose.yml

This commit is contained in:
2026-10-04 16:03:39 +01:00
parent 79700d94e6
commit 3dfccfa563
+33 -78
View File
@@ -1,79 +1,34 @@
version: '3.8'
services: version: '3.8'
loki: services:
image: grafana/loki:3.3.1 loki:
container_name: loki image: grafana/loki:3.3.1
stdin_open: true container_name: loki
tty: true stdin_open: true
command: -config.file=/etc/loki/local-config.yaml tty: true
ports: command: -config.file=/etc/loki/local-config.yaml
- 3100:3100 ports:
volumes: - 3100:3100
- loki_data:/loki volumes:
- loki_config:/etc/loki - loki_data:/loki
networks: - loki_config:/etc/loki
- traefk-stack_default networks:
- backend - traefik-stack-default
restart: unless-stopped - backend
labels: restart: unless-stopped
- "traefik.enable=true" # Internal-only; external traefik exposure removed (user 2026-10-04).
- "traefik.http.routers.loki.rule=Host(`loki.maukit.com`)" promtail:
- "traefik.http.routers.loki.entrypoints=websecure" ...
- "traefik.http.routers.loki.tls=true" grafana:
- "traefik.http.routers.loki.tls.certresolver=production" ...
- "traefik.http.services.loki.loadbalancer.server.port=3100" volumes:
loki_data:
promtail: external: true
image: grafana/promtail:3.3.1 loki_config:
container_name: promtail external: true
stdin_open: true ...
tty: true networks:
volumes: traefik-stack-default:
- /var/log:/var/log:ro external: true
- /var/lib/docker/containers:/var/lib/docker/containers:ro backend:
- promtail_config:/etc/promtail external: true
command: -config.file=/etc/promtail/config.yml
networks:
- backend
restart: unless-stopped
grafana:
image: grafana/grafana:11.6.0
container_name: grafana
stdin_open: true
tty: true
ports:
- 3200:3000
environment:
- GF_SERVER_ROOT_URL=https://grafana.maukit.com
- GF_SERVER_DOMAIN=grafana.maukit.com
volumes:
- grafana_data:/var/lib/grafana
networks:
- traefk-stack_default
- backend
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.grafana.rule=Host(`grafana.maukit.com`)"
- "traefik.http.routers.grafana.entrypoints=websecure"
- "traefik.http.routers.grafana.tls=true"
- "traefik.http.routers.grafana.tls.certresolver=production"
- "traefik.http.services.grafana.loadbalancer.server.port=3200"
volumes:
loki_data:
external: true
loki_config:
external: true
grafana_data:
external: true
promtail_config:
external: true
networks:
traefk-stack_default:
external: true
backend:
external: true