mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
add restart statement to docker compose
I forgot to add this, the container do not restart after maintenance
This commit is contained in:
parent
ef0607aceb
commit
8048a271b1
1 changed files with 5 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue