This commit is contained in:
2026-01-01 11:04:24 +08:00
parent 48da0a4c81
commit 87baa347b7
16 changed files with 1202 additions and 286 deletions

View File

@@ -3,24 +3,23 @@
# 用于统一管理所有服务的启动
# ================================================
# 使用方法:
# 启动所有服务: docker compose up -d
# 启动所有服务: docker compose --profile all up -d
# 启动基础设施: docker compose --profile infra up -d
# 启动后端服务: docker compose --profile serv up -d
# 启动前端服务: docker compose --profile web up -d
# 停止所有服务: docker compose down
# 查看日志: docker compose logs -f [service_name]
#
# All-in-One 模式:
# - urban-lifeline-serv: 所有后端服务 (单容器)
# - urban-lifeline-web: 所有前端应用 (单容器)
# - nginx: 反向代理
# ================================================
name: urban-lifeline
# 引入子目录的 compose 文件
include:
# Level 1: 基础设施
# 基础设施 + 业务服务 (All-in-One)
- path: ./infra/docker-compose.yml
# Level 2: 后端服务
- path: ./urbanLifeline/serv/docker-compose.yml
# Level 3: 前端服务
- path: ./urbanLifeline/web/docker-compose.yml
# 共享网络定义
networks: