- 创建 xiaoqu-app-parent 统一父 POM,管理 4 个 App 模块依赖版本 - 统一 fastjson(1.2.83)、druid(1.2.27)、jedis(3.1.0) 等版本 - 子模块 POM 改造:继承父 POM,删除硬编码版本号 - 添加 Docker 部署方案(complex + mall 双容器) - 添加 ARCHITECTURE.md 架构文档(三套 DAO 层、冻结规范、新项目规范) - 关联需求:REQ-20260421-0011 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
services:
|
|
complex:
|
|
image: smartclean-complex:${VERSION:-latest}
|
|
container_name: smartclean-complex
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker-app/Dockerfile.complex
|
|
ports:
|
|
- "${COMPLEX_PORT:-18091}:8080"
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
volumes:
|
|
- complex_logs:/app/logs
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-sf", "http://localhost:8080/"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 90s
|
|
restart: on-failure:3
|
|
networks:
|
|
- smartclean-app
|
|
|
|
mall:
|
|
image: smartclean-mall:${VERSION:-latest}
|
|
container_name: smartclean-mall
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker-app/Dockerfile.mall
|
|
ports:
|
|
- "${MALL_PORT:-18086}:8080"
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
volumes:
|
|
- mall_logs:/app/logs
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-sf", "http://localhost:8080/"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 90s
|
|
restart: on-failure:3
|
|
networks:
|
|
- smartclean-app
|
|
|
|
volumes:
|
|
complex_logs:
|
|
mall_logs:
|
|
|
|
networks:
|
|
smartclean-app:
|
|
driver: bridge
|