Files
integral-shop/deploy/docker/step2-single-shop/.env.example
danaisuiyuan fb76270882 feat(deploy): 完整 Docker 部署方案 — 寄卖商城 + 积分商城
新增两步独立 Docker 部署方案(czleilei240 环境):

步骤一 寄卖商城(integral-resell)
- step1-integral/docker-compose.yml:redis(Alpine自建) + houtai(webman PHP8) + h5(Nginx)
- houtai.Dockerfile:PHP 8.0 + 阿里云镜像源 + webman.bin entrypoint
- h5.Dockerfile:Nginx + configs.js 环境变量动态重写
- redis.Dockerfile:Alpine + apk 构建,绕过 DockerHub 镜像源问题
- 宿主机 bind-mount:/www/wwwroot/leileiadmin.czchunfang.com(FTP可直接更新程序)

步骤二 积分商城(single-shop-22)
- step2-single-shop/docker-compose.yml:redis + admin-api + front-api + admin-web + h5
- Java Dockerfiles:OpenJDK 17 + --add-opens Spring Boot 2.2.6 兼容

公共配置
- nginx/:四个域名宝塔 Nginx 反代配置(HTTP→HTTPS 301、SSL 终止)
- scripts/:sync-to-server.sh / deploy-step1.sh / remote-up.sh
- DOCKER_DEPLOY.md:完整部署文档

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-17 17:24:08 +08:00

38 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# =============================================================
# 步骤二:积分商城环境变量 — 池州雷蕾商贸 czleilei240
# cp .env.example .env 并填入真实密码
# .env 不入库
# =============================================================
TZ=Asia/Shanghai
# ---------- Redis容器内与步骤一独立 ----------
REDIS_PASSWORD=change-me-redis
# ---------- 阿里云 RDS ----------
RDS_HOST=rm-bp1a178eq62lxba9xbo.mysql.rds.aliyuncs.com
RDS_DB=yangtangyoupin
RDS_USER=yangtangyoupin
RDS_PASSWORD=change-me
# ---------- 积分商城 admin web 打包目标 URL ----------
# VUE_APP_BASE_APIbackend-adminend 打包时注入,指向 single-shop-22 admin-api
SINGLE_ADMIN_API_PUBLIC_URL=https://leilei-jf.czchunfang.com
# ---------- 积分商城 H5 打包目标 URL ----------
# H5_API_DOMAINuni-app 打包时注入 config/app.js指向 single-shop-22 front-api
SINGLE_FRONT_API_PUBLIC_URL=https://leilei-jf.czchunfang.com
# ---------- 订单同步(多商户 source / target ----------
SYNC_SOURCE_ID=shop_15
SYNC_TARGET_MER_ID=15
# ---------- 图片/PDF 目录(与步骤一 H5 Nginx 共享宿主机路径)----------
# Java 后端写入 /usr/local/crmeb/crmebimage/ → 宿主机 /www/wwwroot/leilei.czchunfang.com/crmebimage/
# 步骤一的 H5 Nginx 从 /www/wwwroot/leilei.czchunfang.com/ 对外提供访问
CRMEB_IMAGE_DIR=/www/wwwroot/leilei.czchunfang.com/crmebimage
# ---------- 宿主机暴露端口 ----------
SINGLE_ADMIN_PORT=18081
SINGLE_H5_PORT=18082