feat(deploy): add Docker full-stack deployment and server pack scripts

Enable one-click production deploy via docker-compose.prod.yml, with deployment docs and zip packaging for Baota upload.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-08 16:24:06 +08:00
parent 0d761db70b
commit e52cac7444
16 changed files with 673 additions and 2 deletions

19
.env.docker.example Normal file
View File

@@ -0,0 +1,19 @@
# 复制为 .env.docker 后修改
# cp .env.docker.example .env.docker
# PostgreSQL生产务必修改
POSTGRES_PASSWORD=thebet365
# JWT生产务必修改
JWT_SECRET=change-me-in-production-use-long-random-string
JWT_PLAYER_EXPIRES=24h
JWT_ADMIN_EXPIRES=2h
JWT_AGENT_EXPIRES=8h
# 首次部署写入演示账号与默认数据,完成后改为 false
SEED_DATABASE=true
# 对外端口(宝塔/Nginx 反代时可改回 80/443 或保留以下端口)
API_PORT=3000
PLAYER_PORT=8080
ADMIN_PORT=8081