feat: Mise à jour des Dockerfile préparation d'un environnement de démo [#12]

This commit is contained in:
Luc SORIGNET
2025-02-15 15:16:10 +01:00
parent aef6c193b1
commit 32a77c780a
5 changed files with 184 additions and 1 deletions

44
docker-compose.prod.yml Normal file
View File

@ -0,0 +1,44 @@
version: '3'
services:
redis:
image: 'redis:latest'
expose:
- 6379
environment:
- TZ=Europe/Paris
database:
image: 'postgres:latest'
expose:
- 5432
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: school
TZ: Europe/Paris
backend:
build:
context: ./Back-End
target: production
expose:
- 8080
environment:
- TZ=Europe/Paris
- TEST_MODE=False
depends_on:
- redis
- database
frontend:
build:
context: ./Front-End
target: production
ports:
- 3000:3000
environment:
- TZ=Europe/Paris
- NODE_ENV=production
depends_on:
- backend