新增两步独立 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>
69 lines
1.7 KiB
YAML
69 lines
1.7 KiB
YAML
# =============================================================
|
|
# 寄卖商城 Docker 部署专用 Spring profile
|
|
# 通过 --spring.config.additional-location=file:/config/ + --spring.profiles.active=docker
|
|
# 加载本文件,并由环境变量覆盖关键参数
|
|
# =============================================================
|
|
|
|
server:
|
|
port: ${SERVER_PORT:30032}
|
|
|
|
crmeb:
|
|
imagePath: /usr/local/crmeb/crmebimage/
|
|
captchaOn: false
|
|
asyncConfig: true
|
|
demoSite: false
|
|
|
|
spring:
|
|
datasource:
|
|
name: ${MYSQL_DATABASE}
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
driver-class-name: com.mysql.jdbc.Driver
|
|
url: jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT:3306}/${MYSQL_DATABASE}?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false&allowPublicKeyRetrieval=true
|
|
username: ${MYSQL_USERNAME}
|
|
password: ${MYSQL_PASSWORD}
|
|
druid:
|
|
initial-size: 5
|
|
min-idle: 5
|
|
max-active: 50
|
|
max-wait: 60000
|
|
validation-query: SELECT 1
|
|
test-while-idle: true
|
|
test-on-borrow: false
|
|
test-on-return: false
|
|
redis:
|
|
host: ${REDIS_HOST:redis}
|
|
port: ${REDIS_PORT:6379}
|
|
password: ${REDIS_PASSWORD:}
|
|
database: ${REDIS_DATABASE:0}
|
|
timeout: 10000
|
|
jedis:
|
|
pool:
|
|
max-active: 200
|
|
max-wait: -1
|
|
max-idle: 10
|
|
min-idle: 0
|
|
time-between-eviction-runs: -1
|
|
|
|
# 订单同步(无 MER 时填默认)
|
|
sync:
|
|
source-id: ${SYNC_SOURCE_ID:}
|
|
target-mer-id: ${SYNC_TARGET_MER_ID:0}
|
|
|
|
logging:
|
|
level:
|
|
io.swagger.*: error
|
|
com.zbjk.crmeb: info
|
|
org.springframework.boot.autoconfigure: ERROR
|
|
config: classpath:logback-spring.xml
|
|
file:
|
|
path: /app/log
|
|
|
|
mybatis-plus:
|
|
configuration:
|
|
log-impl:
|
|
|
|
swagger:
|
|
basic:
|
|
enable: false
|
|
check: false
|