mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 23:43:22 +00:00
refactor: Injection des env var dans le frontend
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
redis:
|
||||
image: 'redis:latest'
|
||||
@ -13,32 +11,36 @@ services:
|
||||
expose:
|
||||
- 5432
|
||||
environment:
|
||||
POSTGRES_USER: ${DB_USER}
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: school
|
||||
TZ: Europe/Paris
|
||||
|
||||
backend:
|
||||
build:
|
||||
context: ./Back-End
|
||||
target: production
|
||||
expose:
|
||||
- 8080
|
||||
image: git.v0id.ovh/n3wt-innov/n3wt-school/backend:latest
|
||||
ports:
|
||||
- 8080:8080
|
||||
environment:
|
||||
- TZ=Europe/Paris
|
||||
- TEST_MODE=False
|
||||
- TEST_MODE=True
|
||||
links:
|
||||
- "database:database"
|
||||
- "redis:redis"
|
||||
depends_on:
|
||||
- redis
|
||||
- database
|
||||
volumes:
|
||||
- ./conf/application.json:/Back-End/Subscriptions/Configuration/application.json
|
||||
command: python start.py
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ./Front-End
|
||||
target: production
|
||||
image: git.v0id.ovh/n3wt-innov/n3wt-school/frontend:latest
|
||||
ports:
|
||||
- 3000:3000
|
||||
environment:
|
||||
- TZ=Europe/Paris
|
||||
- NODE_ENV=production
|
||||
volumes:
|
||||
- ./conf/env:/app/.env
|
||||
depends_on:
|
||||
- backend
|
||||
Reference in New Issue
Block a user