-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 1.2 KB
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (44 loc) · 1.2 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
version: '3.9'
services:
api:
build: .
command: python tool/main.py gui --host 0.0.0.0 --port 5000
ports:
- "5000:5000"
volumes:
- ./input:/app/input
- ./output:/app/output
- ./config:/app/config
- ~/.cache/huggingface:/root/.cache/huggingface
environment:
- SEAMLESS_DEVICE=${SEAMLESS_DEVICE:-auto}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/api/system/status"]
interval: 30s
timeout: 10s
retries: 3
worker:
build: .
command: python tool/main.py worker --num-workers ${NUM_WORKERS:-1}
volumes:
- ./input:/app/input
- ./output:/app/output
- ./config:/app/config
- ~/.cache/huggingface:/root/.cache/huggingface
environment:
- SEAMLESS_DEVICE=${SEAMLESS_DEVICE:-auto}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- NUM_WORKERS=${NUM_WORKERS:-1}
restart: unless-stopped
depends_on:
- api
# Uncomment for GPU support (NVIDIA)
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]