feat: initial project structure — Express/TS/TypeORM + React/TS + Docker + Gitea CI
Some checks failed
CI/CD — Build & Deploy / Build (push) Failing after 1m47s
CI/CD — Build & Deploy / Deploy to VPS (push) Has been skipped

This commit is contained in:
2026-03-14 04:13:58 +01:00
commit 4a3be2a323
18 changed files with 396 additions and 0 deletions

29
docker-compose.prod.yml Normal file
View 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"