fix: add docker-compose config and fix nginx proxy for /prod-api/ endpoint

This commit is contained in:
rjb
2026-05-11 00:13:26 +08:00
parent a02773e383
commit 1047599bde
6 changed files with 377 additions and 226 deletions

16
.env.docker.example Normal file
View File

@@ -0,0 +1,16 @@
# 复制为 .env 后填写(勿将 .env 提交到 Git
# cp .env.docker.example .env
# 对外发布后端端口(宿主机:容器均为 8039
BACKEND_PUBLISH=8039
# MySQL示例为腾讯云 CynosDB请按实际修改
MYSQL_HOST=gz-cynosdbmysql-grp-d26pzce5.sql.tencentcdb.com
MYSQL_PORT=24936
MYSQL_DATABASE=rlz
MYSQL_USER=root
MYSQL_PASSWORD=your_password_here
MYSQL_USE_SSL=true
# Redis 由 docker-compose 内 rlz-redis 提供,一般无需改
# REDIS_HOST=redis