Files
company-celebration/DEPLOY.md
empty d4289825aa feat: add Docker deployment configuration
- Add server Dockerfile with multi-stage build
- Add frontend Dockerfile with Nginx
- Add docker-compose.yml for orchestration
- Add Nginx config with SSL support
- Add deployment documentation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 00:23:25 +08:00

1.1 KiB

部署指南

前置要求

  • Docker 20.10+
  • Docker Compose 2.0+
  • 已备案的域名
  • SSL 证书

快速部署

1. 上传项目到服务器

scp -r company-celebration2 user@your-server:/opt/

2. 配置 SSL 证书

将证书文件放入 deploy/ssl/ 目录:

deploy/ssl/
├── fullchain.pem  # 证书链
└── privkey.pem    # 私钥

3. 启用 SSL 配置

cp deploy/nginx.ssl.conf deploy/nginx.conf

4. 配置环境变量

cp .env.production .env
# 编辑 .env 文件,填入你的域名

5. 构建并启动

docker-compose up -d --build

6. 查看日志

docker-compose logs -f

访问地址

端点 地址
手机端 https://your-domain.com/
大屏端 https://your-domain.com/screen
导演控制台 https://your-domain.com/screen/admin/director-console

常用命令

# 停止服务
docker-compose down

# 重启服务
docker-compose restart

# 查看状态
docker-compose ps

# 清理重建
docker-compose down -v
docker-compose up -d --build