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:
19
.env.docker.example
Normal file
19
.env.docker.example
Normal 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
|
||||
Reference in New Issue
Block a user