-
-
Notifications
You must be signed in to change notification settings - Fork 141
/
Copy pathdocker-compose.yml
38 lines (38 loc) · 1.12 KB
/
docker-compose.yml
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
services:
swarmui:
image: swarmui
user: ${HOST_UID:-1000}:${HOST_GID:-1000}
cap_drop:
- ALL
build:
context: .
args:
UID: ${HOST_UID:-1000}
dockerfile: launchtools/StandardDockerfile.docker
container_name: swarmui
# uncomment `network_mode: host` if you want to access other services on the host network (eg a separated comfy instance)
# network_mode: host
volumes:
- swarmdata:/SwarmUI/Data
- swarmbackend:/SwarmUI/dlbackend
- swarmdlnodes:/SwarmUI/src/BuiltinExtensions/ComfyUIBackend/DLNodes
- ./Models:/SwarmUI/Models
- ./Output:/SwarmUI/Output
- ./src/BuiltinExtensions/ComfyUIBackend/CustomWorkflows:/SwarmUI/src/BuiltinExtensions/ComfyUIBackend/CustomWorkflows
ports:
- "7801:7801"
deploy:
resources:
reservations:
devices:
- driver: nvidia
# change the count to the number of GPUs you want to use.
count: 1
capabilities: [gpu]
volumes:
swarmdata:
name: swarmdata
swarmbackend:
name: swarmbackend
swarmdlnodes:
name: swarmdlnodes