Files
gongxue-base/docker-compose.yml
wangziqi 7b298a615c feat: complete PRD verification fixes and deployment readiness
- Add CommonModule to provide/export CampusScope across business modules
- Replace DepartmentsModule imports with CommonModule in 11 modules
- Add missing Class/Tenant repository imports to StudentsModule and SchedulesModule
- Fix service specs with CampusScope, ClassRepository, StudentRepository mocks
- Move better-sqlite3 to optionalDependencies for production Docker builds
- Rewrite Dockerfiles for monorepo root build context
- Update docker-compose.yml service build contexts
2026-07-06 01:55:35 +08:00

51 lines
1.1 KiB
YAML

version: '3.8'
services:
mysql:
image: mysql:8.0
container_name: dorm_billing_mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: dorm_billing_2024
MYSQL_DATABASE: dorm_billing
MYSQL_CHARSET: utf8mb4
MYSQL_COLLATION: utf8mb4_unicode_ci
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
backend:
build:
context: .
dockerfile: apps/server/Dockerfile
container_name: dorm_billing_backend
restart: always
ports:
- "3000:3000"
environment:
DB_HOST: mysql
DB_PORT: 3306
DB_USERNAME: root
DB_PASSWORD: dorm_billing_2024
DB_DATABASE: dorm_billing
JWT_SECRET: dorm-billing-jwt-secret-key-2024
JWT_EXPIRES_IN: 24h
depends_on:
- mysql
frontend:
build:
context: .
dockerfile: apps/admin/Dockerfile
container_name: dorm_billing_frontend
restart: always
ports:
- "80:80"
depends_on:
- backend
volumes:
mysql_data: