-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (55 loc) · 1.83 KB
/
Copy pathdocker-compose.yml
File metadata and controls
58 lines (55 loc) · 1.83 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
services:
# ──────────────────────────────────────────────
# OmniParser (Gradio UI parser server)
# First run downloads ~4GB model weights
# ──────────────────────────────────────────────
omniparser:
build:
context: .
dockerfile: docker/omniparser/Dockerfile
container_name: omniparser-server
volumes:
- omniparser-weights:/app/OmniParser/weights
ports:
- "7861:7861"
environment:
- HF_HUB_ENABLE_HF_TRANSFER=1
healthcheck:
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://localhost:7861')\" || exit 1"]
interval: 15s
timeout: 10s
retries: 30
start_period: 120s
restart: unless-stopped
networks:
- agent-net
# ──────────────────────────────────────────────
# Main Agent (Python)
# ──────────────────────────────────────────────
agent:
build:
context: .
dockerfile: Dockerfile
container_name: craftbot
env_file:
- .env
environment:
- OMNIPARSER_BASE_URL=http://omniparser-server:7861
- USE_OMNIPARSER=${USE_OMNIPARSER:-True}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./workspace:/app/workspace
- ./config.json:/app/config.json
depends_on:
omniparser:
condition: service_healthy
stdin_open: true
tty: true
restart: unless-stopped
networks:
- agent-net
volumes:
omniparser-weights:
networks:
agent-net:
driver: bridge