feat: initial project structure — Express/TS/TypeORM + React/TS + Docker + Gitea CI
This commit is contained in:
29
docker-compose.prod.yml
Normal file
29
docker-compose.prod.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
# Prod — MySQL géré par mysql-prod existant sur le VPS (172.17.0.1:3306)
|
||||
# Usage : docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --build
|
||||
services:
|
||||
mysql:
|
||||
# On ne démarre pas de container MySQL en prod
|
||||
deploy:
|
||||
replicas: 0
|
||||
|
||||
backend:
|
||||
build: ./backend
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 4000
|
||||
DB_HOST: 172.17.0.1
|
||||
DB_PORT: 3306
|
||||
DB_NAME: ${DB_NAME:-originsdigital}
|
||||
DB_USER: ${DB_USER:-originsdigital}
|
||||
DB_PASSWORD: ${DB_PASSWORD}
|
||||
JWT_SECRET: ${JWT_SECRET}
|
||||
extra_hosts:
|
||||
- "host.docker.internal:172.17.0.1"
|
||||
ports: []
|
||||
|
||||
frontend:
|
||||
build: ./frontend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:3007:80"
|
||||
Reference in New Issue
Block a user