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
scripts/docker-up.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env sh
set -e
cd "$(dirname "$0")/.."
if [ ! -f .env.docker ]; then
cp .env.docker.example .env.docker
echo "Created .env.docker from example — please review secrets before production use."
fi
docker compose -f docker-compose.prod.yml --env-file .env.docker up -d --build
echo ""
echo "TheBet365 stack is starting."
echo " Player: http://localhost:${PLAYER_PORT:-8080}"
echo " Admin: http://localhost:${ADMIN_PORT:-8081}"
echo " API: http://localhost:${API_PORT:-3000}/api/docs"
echo ""
echo "Check status: docker compose -f docker-compose.prod.yml ps"