Actualiser docker/maintenance/docker-compose.yml

This commit is contained in:
2025-09-04 11:59:45 +00:00
parent 382699a344
commit 9db0c3dff0

View File

@@ -1,5 +1,4 @@
version: "3.9" # Stack Maintenance
services: services:
# DIUN notification mises à jour images # DIUN notification mises à jour images
diun: diun:
@@ -10,18 +9,21 @@ services:
networks: networks:
- backend - backend
volumes: volumes:
- /srv/docker/maintenance/data/diun:/data - /srv/docker/maintenance/diun:/data
- /srv/docker/maintenance/logs/diun:/var/log/diun
- /srv/docker/maintenance/conf/diun:/etc/diun
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
environment: environment:
- TZ=Europe/Paris - TZ=${TZ}
- DIUN_WATCH_WORKERS=20 - DIUN_WATCH_WORKERS=${DIUN_WATCH_WORKERS}
- DIUN_WATCH_SCHEDULE=0 */6 * * * - DIUN_WATCH_SCHEDULE=${DIUN_WATCH_SCHEDULE}
- DIUN_WATCH_JITTER=30s - DIUN_WATCH_JITTER=${DIUN_WATCH_JITTER}
- DIUN_PROVIDERS_DOCKER=true - DIUN_PROVIDERS_DOCKER=${DIUN_PROVIDERS_DOCKER}
labels: labels:
- diun.enable=true - diun.enable=true
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080 || exit 1"]
interval: 1m
timeout: 10s
retries: 3
# Dozzle visualisation logs # Dozzle visualisation logs
dozzle: dozzle:
@@ -29,15 +31,17 @@ services:
container_name: dozzle container_name: dozzle
restart: unless-stopped restart: unless-stopped
networks: networks:
- frontend
- backend - backend
- frontend
ports: ports:
- "7640:8080" - "7640:8080"
volumes: volumes:
- /srv/docker/maintenance/data/dozzle:/data
- /srv/docker/maintenance/logs/dozzle:/logs
- /srv/docker/maintenance/conf/dozzle:/etc/dozzle
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080 || exit 1"]
interval: 1m
timeout: 10s
retries: 3
# Watchtower mise à jour automatique # Watchtower mise à jour automatique
watchtower: watchtower:
@@ -47,19 +51,21 @@ services:
networks: networks:
- backend - backend
volumes: volumes:
- /srv/docker/maintenance/data/watchtower:/data
- /srv/docker/maintenance/logs/watchtower:/var/log/watchtower
- /srv/docker/maintenance/conf/watchtower:/etc/watchtower
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
environment: environment:
- WATCHTOWER_POLL_INTERVAL=3600 - WATCHTOWER_POLL_INTERVAL=${WATCHTOWER_POLL_INTERVAL}
- WATCHTOWER_CLEANUP=true - WATCHTOWER_CLEANUP=${WATCHTOWER_CLEANUP}
- WATCHTOWER_INCLUDE_STOPPED=false - WATCHTOWER_INCLUDE_STOPPED=${WATCHTOWER_INCLUDE_STOPPED}
- WATCHTOWER_LABEL_ENABLE=false - WATCHTOWER_LABEL_ENABLE=${WATCHTOWER_LABEL_ENABLE}
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080 || exit 1"]
interval: 1m
timeout: 10s
retries: 3
networks: networks:
frontend: frontend:
external: true external: true
backend: backend:
external: true external: true