-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
102 lines (94 loc) · 2.24 KB
/
docker-compose.yml
File metadata and controls
102 lines (94 loc) · 2.24 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
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
name: stable-diffusion-webui
x-webui-base: &webui-base
build: ./services/webui/
image: webui
stop_signal: SIGKILL
tty: true
environment:
- CLI_ARGS=--allow-code --xformers --enable-insecure-extension-access --api
volumes:
- data:/data
- ./outputs:/workspace/stable-diffusion-webui/outputs
services:
download:
build: ./services/download/
profiles: [ "download" ]
volumes:
- data:/data
webui-cloud:
<<: *webui-base
profiles: [ "cloud" ]
expose:
- 7860
environment:
- VIRTUAL_HOST
- VIRTUAL_PORT
- LETSENCRYPT_HOST
- LETSENCRYPT_EMAIL
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [ compute, utility ]
webui-local-gpu:
<<: *webui-base
profiles: [ "local-gpu" ]
ports:
- 7860:7860
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [ gpu ]
webui-local-cpu:
<<: *webui-base
profiles: [ "local-cpu" ]
ports:
- 7860:7860
environment:
- CLI_ARGS=--no-half --precision full --allow-code --enable-insecure-extension-access --api
nginx:
profiles: [ "cloud" ]
image: jwilder/nginx-proxy:latest
container_name: nginx
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- certs:/etc/nginx/certs:ro
- vhost:/etc/nginx/vhost.d:rw
- dhparam:/etc/nginx/dhparam
- conf:/etc/nginx/conf.d
- html:/usr/share/nginx/html:rw
- ".htpasswd:/etc/nginx/htpasswd/${VIRTUAL_HOST:-localhost}"
depends_on:
- webui-cloud
letsencrypt:
profiles: [ "cloud" ]
image: jrcs/letsencrypt-nginx-proxy-companion:latest
container_name: letsencrypt
restart: unless-stopped
environment:
- NGINX_PROXY_CONTAINER=nginx
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- acme:/etc/acme.sh
- certs:/etc/nginx/certs:rw
- vhost:/etc/nginx/vhost.d:rw
- html:/usr/share/nginx/html:rw
depends_on:
- nginx
volumes:
data:
acme:
certs:
conf:
vhost:
dhparam:
html: