mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
Some checks failed
CI/CD Pipeline for Backend / build_and_push_backend (push) Has been cancelled
CI/CD Pipeline for Nginx Router / build_and_push_nginx (push) Has been cancelled
CI/CD Pipeline for Frontend / build_and_push_frontend (push) Has been cancelled
Tests / tests (client) (push) Has been cancelled
Tests / tests (server) (push) Has been cancelled
84 lines
2.2 KiB
YAML
84 lines
2.2 KiB
YAML
services:
|
|
|
|
frontend:
|
|
image: fuhrmanator/evaluetonsavoir-frontend:latest
|
|
container_name: frontend
|
|
environment:
|
|
# Define empty VITE_BACKEND_URL because it's production
|
|
- VITE_BACKEND_URL=
|
|
# Define empty VITE_BACKEND_SOCKET_URL so it will default to window.location.host
|
|
- VITE_BACKEND_SOCKET_URL=
|
|
ports:
|
|
- "5173:5173"
|
|
restart: always
|
|
|
|
backend:
|
|
image: fuhrmanator/evaluetonsavoir-backend:latest
|
|
container_name: backend
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
PORT: 3000
|
|
MONGO_URI: "mongodb://mongo:27017/evaluetonsavoir"
|
|
MONGO_DATABASE: evaluetonsavoir
|
|
EMAIL_SERVICE: gmail
|
|
SENDER_EMAIL: infoevaluetonsavoir@gmail.com
|
|
EMAIL_PSW: 'vvml wmfr dkzb vjzb'
|
|
JWT_SECRET: haQdgd2jp09qb897GeBZyJetC8ECSpbFJe
|
|
FRONTEND_URL: "http://localhost:5173"
|
|
depends_on:
|
|
- mongo
|
|
restart: always
|
|
|
|
# Ce conteneur sert de routeur pour assurer le bon fonctionnement de l'application
|
|
nginx:
|
|
image: fuhrmanator/evaluetonsavoir-routeur:latest
|
|
container_name: nginx
|
|
ports:
|
|
- "80:80"
|
|
depends_on:
|
|
- backend
|
|
- frontend
|
|
restart: always
|
|
|
|
# Ce conteneur est la base de données principale pour l'application
|
|
mongo:
|
|
image: mongo
|
|
container_name: mongo
|
|
ports:
|
|
- "27017:27017"
|
|
tty: true
|
|
volumes:
|
|
- mongodb_data:/data/db
|
|
restart: always
|
|
|
|
# Ce conteneur cherche des mises à jour à 5h du matin
|
|
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
|
|
|
|
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
|