forked from AbdBarho/stable-diffusion-webui-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
122 lines (109 loc) · 2.89 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
version: '3.9'
x-base_service: &base_service
ports:
- "${WEBUI_PORT:-7860}:7860"
volumes:
- &v1 ./data:/data
- &v2 ./output:/output
stop_signal: SIGKILL
tty: true
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['0']
capabilities: [compute, utility]
name: webui-docker
services:
download:
build: ./services/download/
profiles: ["download"]
volumes:
- *v1
auto: &automatic
<<: *base_service
profiles: ["auto"]
build: ./services/AUTOMATIC1111
image: emprops/auto1111:sdauto
environment:
- CLI_ARGS=--opt-sdp-no-mem-attention --api --port 3000 --medvram --no-half-vae
1_5-and-2_1: &automatic
<<: *base_service
profiles: ["1_5-and-2_1"]
build:
context: ./services/AUTOMATIC1111
args:
models: "1_5-and-2_1"
image: emprops/auto1111:sdauto1_5-and-2_1
environment:
- CLI_ARGS=--opt-sdp-no-mem-attention --api --port 3000 --medvram --no-half-vae
sdxl-and-refiner: &automatic
<<: *base_service
profiles: ["sdxl-and-refiner"]
build:
context: ./services/AUTOMATIC1111
args:
models: "sdxl-and-refiner"
image: emprops/auto1111:sdautosdxl-and-refiner
environment:
- CLI_ARGS=--opt-sdp-no-mem-attention --api --port 3000 --medvram --no-half-vae
all: &automatic
<<: *base_service
profiles: ["all"]
build:
context: ./services/AUTOMATIC1111
args:
models: "models"
GITACCESSKEY: ${GITACCESSKEY}
image: emprops/auto1111:sdauto-allv5
environment:
- CLI_ARGS=--opt-sdp-no-mem-attention --api --port 3000 --medvram --no-half-vae
old: &automatic
<<: *base_service
profiles: ["old"]
build:
context: ./services/AUTOMATIC1111
args:
models: "models"
GITACCESSKEY: ${GITACCESSKEY}
image: emprops/auto1111:sdauto-oldv1
environment:
- CLI_ARGS=--opt-sdp-no-mem-attention --api --port 3000 --medvram --no-half-vae
auto-cpu:
<<: *automatic
profiles: ["auto-cpu"]
deploy: {}
environment:
- CLI_ARGS=--no-half --precision full --allow-code --enable-insecure-extension-access --api
invoke: &invoke
<<: *base_service
profiles: ["invoke"]
build: ./services/invoke/
image: sd-invoke:30
environment:
- PRELOAD=true
- CLI_ARGS=--xformers
# invoke-cpu:
# <<: *invoke
# profiles: ["invoke-cpu"]
# environment:
# - PRELOAD=true
# - CLI_ARGS=--always_use_cpu
comfy: &comfy
<<: *base_service
profiles: ["comfy"]
build:
context: ./services/comfy
args:
models: "models"
GITACCESSKEY: ${GITACCESSKEY}
image: emprops/comfy:v1
environment:
- CLI_ARGS=
comfy-cpu:
<<: *comfy
profiles: ["comfy-cpu"]
deploy: {}
environment:
- CLI_ARGS=--cpu