-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
60 lines (58 loc) · 1.21 KB
/
docker-compose.yaml
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
version: "3.8"
name: comfy-docker
services:
comfy:
build:
context: .
dockerfile: ./Dockerfile
stop_signal: SIGKILL
restart: always
tty: true
environment:
- CLI_ARGS=
ports:
- "7870:7870"
volumes:
- comfy_cache:/home/comfy/.cache
- comfy_models:/home/comfy/comfyui/models
- comfy_custom_nodes:/home/comfy/comfyui/custom_nodes
- comfy_input:/home/comfy/comfyui/input
- comfy_output:/home/comfy/comfyui/output
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['0']
capabilities: [compute, utility]
volumes:
comfy_cache:
driver: local
driver_opts:
o: bind
type: none
device: ./data/cache
comfy_models:
driver: local
driver_opts:
o: bind
type: none
device: ./data/models
comfy_custom_nodes:
driver: local
driver_opts:
o: bind
type: none
device: ./data/custom_nodes
comfy_input:
driver: local
driver_opts:
o: bind
type: none
device: ./data/input
comfy_output:
driver: local
driver_opts:
o: bind
type: none
device: ./data/output