-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.simple.yml
More file actions
43 lines (40 loc) · 1.02 KB
/
Copy pathdocker-compose.simple.yml
File metadata and controls
43 lines (40 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: '3.8'
# 简化版本:使用多阶段构建,一个前端容器包含Next.js和Nginx
services:
# 后端服务 (FastAPI)
backend:
image: registry.cn-shenzhen.aliyuncs.com/ai_creator/tradingagents-backend
build:
context: .
dockerfile: Dockerfile
target: backend
container_name: tradingagents-backend
ports:
- "8080:8000"
env_file:
- ./.env
volumes:
- ./db:/app/db
- ./eval_results:/app/eval_results
restart: unless-stopped
networks:
- tradingagents-network
# 前端服务 (Next.js + Nginx)
frontend:
image: registry.cn-shenzhen.aliyuncs.com/ai_creator/tradingagents-frontend
build:
context: ./web/frontend
dockerfile: Dockerfile.combined
container_name: tradingagents-frontend
ports:
- "8000:80"
environment:
- BACKEND_URL=http://backend:8000
depends_on:
- backend
restart: unless-stopped
networks:
- tradingagents-network
networks:
tradingagents-network:
driver: bridge