mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
56 lines
1013 B
YAML
56 lines
1013 B
YAML
version: '3'
|
|
|
|
services:
|
|
redis:
|
|
image: 'redis:latest'
|
|
ports:
|
|
- 6379:6379
|
|
|
|
environment:
|
|
- TZ=Europe/Paris
|
|
|
|
database:
|
|
image: 'postgres:latest'
|
|
ports:
|
|
- 5432:5432
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: school
|
|
TZ: Europe/Paris
|
|
|
|
backend:
|
|
build:
|
|
context: ./Back-End
|
|
ports:
|
|
- 8080:8080
|
|
volumes:
|
|
- ./Back-End:/Back-End
|
|
environment:
|
|
- TZ=Europe/Paris
|
|
- TEST_MODE=True
|
|
- CORS_ALLOWED_ORIGINS=http://localhost:3000
|
|
- CSRF_TRUSTED_ORIGINS=http://localhost:3000,http://localhost:8080
|
|
links:
|
|
- "database:database"
|
|
- "redis:redis"
|
|
depends_on:
|
|
- redis
|
|
- database
|
|
command: python start.py
|
|
|
|
frontend:
|
|
build:
|
|
context: ./Front-End
|
|
args:
|
|
- BUILD_MODE=development
|
|
ports:
|
|
- 3000:3000
|
|
volumes:
|
|
- ./Front-End:/app
|
|
environment:
|
|
- TZ=Europe/Paris
|
|
depends_on:
|
|
- backend
|
|
|