forked from OpenBMB/ChatDev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1.16 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (49 loc) · 1.16 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
44
45
46
47
48
49
50
51
52
services:
backend:
image: ghcr.io/astral-sh/uv:python3.12-bookworm
container_name: multi-agent-backend
working_dir: /app
volumes:
- .:/app
- uv-cache:/root/.cache/uv
ports:
- "6400:6400"
command: >
sh -c "apt-get update && apt-get install -y curl &&
uv sync &&
uv run python server_main.py --host 0.0.0.0 --port 6400"
environment:
- PYTHONUNBUFFERED=1
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6400/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 40s
networks:
- app-network
frontend:
image: node:20-bookworm
container_name: multi-agent-frontend
working_dir: /app/frontend
volumes:
- .:/app
- node-modules:/app/frontend/node_modules
ports:
- "5173:5173"
environment:
- VITE_API_BASE_URL=http://backend:6400
command: >
sh -c "npm install &&
npm run dev -- --host 0.0.0.0"
depends_on:
backend:
condition: service_healthy
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
uv-cache:
node-modules: