likhonsheikh commited on
Commit
14f2ad8
·
verified ·
1 Parent(s): d6e2e97

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +114 -0
Dockerfile CHANGED
@@ -74,6 +74,120 @@ volumes:
74
  mongodb_data:
75
  name: manus-mongodb-data
76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  networks:
78
  manus-network:
79
  name: manus-network
 
74
  mongodb_data:
75
  name: manus-mongodb-data
76
 
77
+ networks:
78
+ manus-network:
79
+ name: manus-network
80
+ driver: bridge
81
+
82
+ services:
83
+ frontend-dev:
84
+ build:
85
+ context: ./frontend
86
+ dockerfile: Dockerfile
87
+ target: build-stage # Use build stage image instead of production image
88
+ command: ["npm", "run", "dev", "--", "--host", "0.0.0.0"] # Start in development mode and listen on all network interfaces
89
+ volumes:
90
+ - ./frontend:/app # Mount source code directory
91
+ - /app/node_modules # Avoid overwriting container's node_modules
92
+ ports:
93
+ - "5173:5173" # Vite default development port
94
+ environment:
95
+ - NODE_ENV=development
96
+ - VITE_API_URL=http://127.0.0.1:8000
97
+ depends_on:
98
+ - backend
99
+ restart: unless-stopped
100
+ networks:
101
+ - manus-network
102
+
103
+ backend:
104
+ build:
105
+ context: ./backend
106
+ dockerfile: Dockerfile
107
+ command: ["./dev.sh"] # Start in reload mode
108
+ volumes:
109
+ - ./backend:/app # Mount source code directory
110
+ #- ./mcp.json:/etc/mcp.json # Mount MCP servers directory
111
+ - /var/run/docker.sock:/var/run/docker.sock:ro
112
+ - /app/__pycache__ # Avoid overwriting cache files
113
+ - /app/.venv # Avoid overwriting virtual environment
114
+ ports:
115
+ - "8000:8000"
116
+ depends_on:
117
+ sandbox:
118
+ condition: service_started
119
+ required: false
120
+ mongodb:
121
+ condition: service_started
122
+ required: true
123
+ redis:
124
+ condition: service_started
125
+ required: true
126
+ restart: unless-stopped
127
+ networks:
128
+ - manus-network
129
+ env_file:
130
+ - .env
131
+ environment:
132
+ - SANDBOX_ADDRESS=sandbox # Use single container as sandbox
133
+
134
+ sandbox:
135
+ build:
136
+ context: ./sandbox
137
+ dockerfile: Dockerfile
138
+ hostname: sandbox
139
+ volumes:
140
+ - ./sandbox:/app # Mount source code directory
141
+ - ./sandbox/supervisord.conf:/etc/supervisor/conf.d/app.conf
142
+ - /app/__pycache__ # Avoid overwriting cache files
143
+ - /app/.venv # Avoid overwriting virtual environment
144
+ ports:
145
+ #- "9222:9222"
146
+ - "5902:5900"
147
+ #- "5901:5901"
148
+ - "8080:8080"
149
+ environment:
150
+ - UVI_ARGS="--reload"
151
+ - LOG_LEVEL=${LOG_LEVEL:-DEBUG}
152
+ restart: unless-stopped
153
+ networks:
154
+ - manus-network
155
+
156
+ mockserver:
157
+ build:
158
+ context: ./mockserver
159
+ dockerfile: Dockerfile
160
+ volumes:
161
+ - ./mockserver:/app # Mount source code directory
162
+ - /app/__pycache__ # Avoid overwriting cache files
163
+ - /app/.venv # Avoid overwriting virtual environment
164
+ restart: unless-stopped
165
+ environment:
166
+ - MOCK_DATA_FILE=default.yaml
167
+ - MOCK_DELAY=1
168
+ networks:
169
+ - manus-network
170
+
171
+ mongodb:
172
+ image: mongo:7.0
173
+ volumes:
174
+ - mongodb_data:/data/db
175
+ restart: unless-stopped
176
+ ports:
177
+ - "27017:27017"
178
+ networks:
179
+ - manus-network
180
+
181
+ redis:
182
+ image: redis:7.0
183
+ restart: unless-stopped
184
+ networks:
185
+ - manus-network
186
+
187
+ volumes:
188
+ mongodb_data:
189
+ name: manus-mongodb-data
190
+
191
  networks:
192
  manus-network:
193
  name: manus-network