-
Notifications
You must be signed in to change notification settings - Fork 382
Expand file tree
/
Copy pathdocker-compose-development.yml
More file actions
142 lines (134 loc) · 3.82 KB
/
docker-compose-development.yml
File metadata and controls
142 lines (134 loc) · 3.82 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
services:
frontend-dev:
build:
context: ./frontend
dockerfile: Dockerfile
target: build-stage # Use build stage image instead of production image
command: ["npm", "run", "dev", "--", "--host", "0.0.0.0"] # Start in development mode and listen on all network interfaces
volumes:
- ./frontend:/app # Mount source code directory
- /app/node_modules # Avoid overwriting container's node_modules
ports:
- "5173:5173" # Vite default development port
environment:
- NODE_ENV=development
#- VITE_API_URL=http://127.0.0.1:8000
- BACKEND_URL=http://backend:8000
depends_on:
- backend
restart: unless-stopped
networks:
- manus-network
backend:
build:
context: ./backend
dockerfile: Dockerfile
command:
[
"uv", "run",
"debugpy", "--listen", "0.0.0.0:5678", "-m", # Enable debug
"uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload",
"--timeout-graceful-shutdown","0"
]
volumes:
- ./backend:/app # Mount source code directory
#- ./mcp.json:/etc/mcp.json # Mount MCP servers directory
- /var/run/docker.sock:/var/run/docker.sock:ro
- /app/__pycache__ # Avoid overwriting cache files
- /app/.venv # Avoid overwriting virtual environment
ports:
- "8000:8000"
- "5678:5678" # Debug port
depends_on:
sandbox:
condition: service_started
required: false
claw:
condition: service_started
required: false
mongodb:
condition: service_started
required: true
redis:
condition: service_started
required: true
restart: unless-stopped
networks:
- manus-network
env_file:
- .env
environment:
- SANDBOX_ADDRESS=sandbox # Use single container as sandbox
- CLAW_ADDRESS=claw # Use single fixed claw container in development
- MANUS_API_BASE_URL=http://backend:8000
- CLAW_API_KEY=${CLAW_DEV_API_KEY:-manus-dev-api-key-changeme}
sandbox:
build:
context: ./sandbox
dockerfile: Dockerfile
hostname: sandbox
volumes:
- ./sandbox:/app # Mount source code directory
- ./sandbox/supervisord.conf:/etc/supervisor/conf.d/app.conf
- /app/__pycache__ # Avoid overwriting cache files
- /app/.venv # Avoid overwriting virtual environment
ports:
#- "9222:9222"
- "5902:5900"
#- "5901:5901"
- "8080:8080"
environment:
- UVI_ARGS="--reload"
- LOG_LEVEL=${LOG_LEVEL:-DEBUG}
restart: unless-stopped
networks:
- manus-network
claw:
build:
context: ./claw
dockerfile: Dockerfile
hostname: claw
ports:
- "18788:18788" # manus-claw HTTP server
environment:
- CLAW_TTL_SECONDS=0 # No TTL in development (0 = unlimited)
- MANUS_API_BASE_URL=http://backend:8000
- MANUS_API_KEY=${CLAW_DEV_API_KEY:-manus-dev-api-key-changeme}
restart: unless-stopped
networks:
- manus-network
mockserver:
build:
context: ./mockserver
dockerfile: Dockerfile
volumes:
- ./mockserver:/app # Mount source code directory
- /app/__pycache__ # Avoid overwriting cache files
- /app/.venv # Avoid overwriting virtual environment
restart: unless-stopped
environment:
- MOCK_DATA_FILE=default.yaml
- MOCK_DELAY=1
networks:
- manus-network
mongodb:
image: mongo:7.0
volumes:
- mongodb_data:/data/db
restart: unless-stopped
ports:
- "27017:27017"
networks:
- manus-network
redis:
image: redis:7.0
restart: unless-stopped
networks:
- manus-network
volumes:
mongodb_data:
name: manus-mongodb-data
networks:
manus-network:
name: manus-network
driver: bridge