add restart statement to docker compose

I forgot to add this, the container do not restart after maintenance
This commit is contained in:
louis-antoine-etsmtl 2024-04-09 10:31:15 -04:00 committed by GitHub
parent ef0607aceb
commit 8048a271b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,6 +7,7 @@ services:
container_name: frontend
ports:
- "5173:5173"
restart: always
backend:
image: evaluetonsavoir/evaluetonsavoir-backend:latest
@ -24,6 +25,7 @@ services:
FRONTEND_URL: "http://localhost:5173"
depends_on:
- mongo
restart: always
# Ce conteneur sert de routeur pour assurer le bon fonctionnement de l'application
nginx:
@ -34,6 +36,7 @@ services:
depends_on:
- backend
- frontend
restart: always
# Ce conteneur est la base de données principale pour l'application
mongo:
@ -44,7 +47,7 @@ services:
tty: true
volumes:
- mongodb_data:/data/db
restart: unless-stopped
restart: always
# Ce conteneur assure que l'application est à jour en allant chercher s'il y a des mises à jours à chaque heure
watchtower:
@ -58,7 +61,7 @@ services:
- WATCHTOWER_DEBUG=true
- WATCHTOWER_INCLUDE_RESTARTING=true
- WATCHTOWER_POLL_INTERVAL=7200 # every hour
restart: unless-stopped
restart: always
volumes:
mongodb_data: