Files
bw-mini-app-server/docker-compose.yml
imeepos e30d7cc4da feat: 添加AI模板管理系统和Docker配置
- 实现面向对象的模板管理系统
- 添加N8n模板抽象类和具体实现
- 创建老照片修复上色模板
- 创建修人物表情闭眼模板
- 集成BowongAI服务
- 添加完整的Docker配置(多阶段构建)
- 添加docker-compose配置
- 完善项目文档和API设计
2025-09-03 17:37:30 +08:00

45 lines
837 B
YAML

version: '3.8'
services:
# NestJS 应用服务
app:
build:
context: .
dockerfile: Dockerfile
target: development
container_name: bw-mini-app-server
ports:
- "3000:3000"
volumes:
# 开发时挂载源代码,支持热重载
- .:/app
- /app/node_modules
environment:
- NODE_ENV=development
- PORT=3000
networks:
- app-network
restart: unless-stopped
# 生产环境服务
app-prod:
build:
context: .
dockerfile: Dockerfile
target: production
container_name: bw-mini-app-server-prod
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- PORT=3000
networks:
- app-network
restart: unless-stopped
profiles:
- production
networks:
app-network:
driver: bridge