EvalueTonSavoir/docker-compose.yaml

71 lines
1.8 KiB
YAML
Raw Normal View History

2024-03-29 20:08:34 -04:00
version: '3'
services:
frontend:
image: fuhrmanator/evaluetonsavoir-frontend:latest
2024-03-29 20:08:34 -04:00
container_name: frontend
ports:
- "5173:5173"
restart: always
2024-03-29 20:08:34 -04:00
backend:
image: fuhrmanator/evaluetonsavoir-backend:latest
2024-03-29 20:08:34 -04:00
container_name: backend
ports:
- "3000:3000"
environment:
PORT: 3000
2024-04-05 13:40:59 -04:00
MONGO_URI: "mongodb://mongo:27017/evaluetonsavoir"
2024-03-29 20:08:34 -04:00
MONGO_DATABASE: evaluetonsavoir
EMAIL_SERVICE: gmail
SENDER_EMAIL: infoevaluetonsavoir@gmail.com
EMAIL_PSW: 'vvml wmfr dkzb vjzb'
JWT_SECRET: haQdgd2jp09qb897GeBZyJetC8ECSpbFJe
2024-04-06 14:49:08 -04:00
FRONTEND_URL: "http://localhost:5173"
2024-09-22 21:00:15 -04:00
volumes:
- ./auth_config.json:/usr/src/app/serveur/config/auth_config.json
2024-03-29 20:08:34 -04:00
depends_on:
- mongo
restart: always
2024-03-29 20:08:34 -04:00
2024-04-05 13:40:59 -04:00
# Ce conteneur sert de routeur pour assurer le bon fonctionnement de l'application
2024-03-29 20:08:34 -04:00
nginx:
image: fuhrmanator/evaluetonsavoir-routeur:latest
2024-03-29 20:08:34 -04:00
container_name: nginx
ports:
- "80:80"
depends_on:
- backend
- frontend
restart: always
2024-03-29 20:08:34 -04:00
2024-04-05 13:40:59 -04:00
# Ce conteneur est la base de données principale pour l'application
2024-03-29 20:08:34 -04:00
mongo:
image: mongo
container_name: mongo
ports:
- "27017:27017"
tty: true
volumes:
- mongodb_data:/data/db
restart: always
2024-03-29 20:08:34 -04:00
2024-04-05 13:40:59 -04:00
# 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_SCHEDULE=0 0 5 * * * # At 5 am everyday
restart: always
2024-04-05 13:40:59 -04:00
2024-03-29 20:08:34 -04:00
volumes:
mongodb_data:
external: false