File size: 658 Bytes
0ce60a9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
services:
  stableswarmui:
    image: stableswarmui
    build: .
    container_name: stableswarmui
    # uncomment `networks: host` if you want to access other services on the host network (eg a separated comfy instance)
    # networks: host
    volumes:
      - swarmdata:/Data
      - swarmbackend:/dlbackend
      - ./Models:/Models
      - ./Output:/Output
    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:
  swarmbackend: