-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (35 loc) · 984 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (35 loc) · 984 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
33
34
35
36
services:
agentic-browser:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "3000:3000"
environment:
- API_TOKEN=${API_TOKEN}
- TWOCAPTCHA_API_KEY=${TWOCAPTCHA_API_KEY}
- NOPECHA_API_KEY=${NOPECHA_API_KEY}
- PROFILES_DIR=/data/profiles
- EXTENSIONS_DIR=/app/extensions
- RECIPES_DIR=/data/recipes
- PORT=3000
- NODE_ENV=production
volumes:
- browser-profiles:/data/profiles
- browser-recipes:/data/recipes
# Chrome requires large /dev/shm (default 64MB crashes it)
shm_size: "2gb"
# Chrome sandbox needs namespace isolation
cap_add:
- SYS_ADMIN
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://localhost:3000/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
interval: 30s
timeout: 10s
retries: 3
volumes:
browser-profiles:
driver: local
browser-recipes:
driver: local