-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.4 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
services:
openwhale:
build: .
ports:
- "7777:7777"
environment:
- NODE_ENV=development
- DATABASE_URL=file:./data/openwhale.db
- JWT_SECRET=${JWT_SECRET:-dev-secret-change-in-production}
- LOG_LEVEL=debug
volumes:
- ./data:/app/data
- ./config:/app/config
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7777/health"]
interval: 30s
timeout: 10s
retries: 3
# Optional: PostgreSQL for production scale
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: openwhale
POSTGRES_USER: openwhale
POSTGRES_PASSWORD: ${DB_PASSWORD:-openwhale}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
profiles: ["postgres"]
# Optional: Redis for sessions/rate limiting
redis:
image: redis:7-alpine
volumes:
- redis_data:/data
ports:
- "6379:6379"
profiles: ["redis"]
# Sandbox browser for agent automation
browser:
image: mcr.microsoft.com/playwright:v1.48.0-jammy
environment:
- DISPLAY=:99
volumes:
- browser_data:/home/pwuser/.cache
ports:
- "9222:9222"
command: >
bash -c "Xvfb :99 -screen 0 1920x1080x24 &
chromium --remote-debugging-port=9222 --no-sandbox"
profiles: ["browser"]
volumes:
postgres_data:
redis_data:
browser_data: