mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
update dockercompose
This commit is contained in:
parent
91775c1efb
commit
05a7bd8d93
1 changed files with 20 additions and 7 deletions
|
|
@ -3,21 +3,19 @@ version: '3'
|
||||||
services:
|
services:
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
build:
|
image: evaluetonsavoir/EvalueTonSavoir-frontend:latest
|
||||||
context: ./client
|
|
||||||
container_name: frontend
|
container_name: frontend
|
||||||
ports:
|
ports:
|
||||||
- "5173:5173"
|
- "5173:5173"
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
build:
|
image: evaluetonsavoir/EvalueTonSavoir-backend:latest
|
||||||
context: ./server
|
|
||||||
container_name: backend
|
container_name: backend
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
environment:
|
environment:
|
||||||
PORT: 3000
|
PORT: 3000
|
||||||
MONGO_URI: "mongodb://mongo:27017/evaluetonsavoir" # Utilisez ceci si aucune authentification n'est requise
|
MONGO_URI: "mongodb://mongo:27017/evaluetonsavoir"
|
||||||
MONGO_DATABASE: evaluetonsavoir
|
MONGO_DATABASE: evaluetonsavoir
|
||||||
EMAIL_SERVICE: gmail
|
EMAIL_SERVICE: gmail
|
||||||
SENDER_EMAIL: infoevaluetonsavoir@gmail.com
|
SENDER_EMAIL: infoevaluetonsavoir@gmail.com
|
||||||
|
|
@ -27,9 +25,9 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- mongo
|
- mongo
|
||||||
|
|
||||||
|
# Ce conteneur sert de routeur pour assurer le bon fonctionnement de l'application
|
||||||
nginx:
|
nginx:
|
||||||
build:
|
image: evaluetonsavoir/EvalueTonSavoir-router:latest
|
||||||
context: ./nginx
|
|
||||||
container_name: nginx
|
container_name: nginx
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
|
|
@ -37,6 +35,7 @@ services:
|
||||||
- backend
|
- backend
|
||||||
- frontend
|
- frontend
|
||||||
|
|
||||||
|
# Ce conteneur est la base de données principale pour l'application
|
||||||
mongo:
|
mongo:
|
||||||
image: mongo
|
image: mongo
|
||||||
container_name: mongo
|
container_name: mongo
|
||||||
|
|
@ -47,6 +46,20 @@ services:
|
||||||
- mongodb_data:/data/db
|
- mongodb_data:/data/db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Ce conteneur assure que l'application est à jour en allant chercher s'il y a des mises à jours à chaque heure
|
||||||
|
watchtower:
|
||||||
|
image: containrrr/watchtower
|
||||||
|
container_name: watchtower
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
environment:
|
||||||
|
- TZ=America/Montreal
|
||||||
|
- WATCHTOWER_CLEANUP=true
|
||||||
|
- WATCHTOWER_DEBUG=true
|
||||||
|
- WATCHTOWER_INCLUDE_RESTARTING=true
|
||||||
|
- WATCHTOWER_POLL_INTERVAL=7200 # every hour
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mongodb_data:
|
mongodb_data:
|
||||||
external: false
|
external: false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue