forked from chenlubenren/ShrimpCrab--multi-agent-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (30 loc) · 804 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
32 lines (30 loc) · 804 Bytes
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
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "3002:3002"
- "3003:3003"
environment:
- NODE_ENV=production
- JWT_SECRET=${JWT_SECRET:-your-secret-change-me}
- CORS_ORIGIN=${CORS_ORIGIN:-http://localhost:3000}
- PUBLIC_BACKEND_URL=${PUBLIC_BACKEND_URL:-http://localhost:3002}
- WORKSPACE_ROOT=/app/data/workspaces
volumes:
# Persist workspaces data
- agent_workspaces:/app/data/workspaces
# Persist database
- agent_db:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3002/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
agent_workspaces:
agent_db: