diff --git a/docker-compose.yaml b/docker-compose.yaml index 184857f..24bd3a6 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -52,7 +52,7 @@ services: - mongodb_data:/data/db restart: always - # Ce conteneur assure que l'application est à jour en allant chercher s'il y a des mises à jours à chaque heure + # Ce conteneur cherche des mises à jour à 5h du matin watchtower: image: containrrr/watchtower container_name: watchtower @@ -66,6 +66,19 @@ services: - WATCHTOWER_SCHEDULE=0 0 5 * * * # At 5 am everyday restart: always + watchtower-once: + image: containrrr/watchtower + container_name: watchtower-once + volumes: + - /var/run/docker.sock:/var/run/docker.sock + command: --run-once + environment: + - TZ=America/Montreal + - WATCHTOWER_CLEANUP=true + - WATCHTOWER_DEBUG=true + - WATCHTOWER_INCLUDE_RESTARTING=true + restart: "no" + volumes: mongodb_data: external: false