Files
Scoring-System/docker-compose.yml
爽哒哒 e68941b67c
All checks were successful
Deploy to Server / deploy (push) Successful in 1m58s
perf: remove source code volume mount, collectstatic at build time
2026-03-21 11:54:19 +08:00

28 lines
705 B
YAML

services:
backend:
build: ./backend
container_name: cywl-scoring-backend
command: sh -c "python manage.py migrate && gunicorn --bind 0.0.0.0:8876 --workers 4 --timeout 120 --access-logfile - --error-logfile - config.wsgi:application"
volumes:
- ./backend/media:/app/media
- ./backend/.env:/app/.env
ports:
- "8876:8876"
environment:
- DB_NAME=scoring
- DB_USER=quant-speed
- DB_PASSWORD=123quant-speed
- DB_HOST=6.6.6.66
- DB_PORT=5432
frontend:
build:
context: ./frontend
args:
- VITE_API_URL=/api
container_name: cywl-scoring-frontend
ports:
- "8890:8890"
depends_on:
- backend