mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-02-03 22:24:19 +01:00
Merge pull request #1 from machinshin/features/add-auth
change port to 24567; add gradio auth from envvar
This commit is contained in:
commit
074a4b02b2
2
.env.sample
Normal file
2
.env.sample
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
# https://github.com/uprestech/company_start_todo/issues/249
|
||||||
|
GRADIO_AUTH="" # user1:pass1,user2:pass2
|
||||||
|
|
@ -1,47 +1,49 @@
|
||||||
version: '3.9'
|
version: '3.9'
|
||||||
|
|
||||||
x-base_service: &base_service
|
x-base_service:
|
||||||
ports:
|
&base_service
|
||||||
- "7860:7860"
|
ports:
|
||||||
volumes:
|
- "24567:7860"
|
||||||
- &v1 ./data:/data
|
volumes:
|
||||||
- &v2 ./output:/output
|
- &v1 ./data:/data
|
||||||
stop_signal: SIGINT
|
- &v2 ./output:/output
|
||||||
deploy:
|
stop_signal: SIGINT
|
||||||
resources:
|
deploy:
|
||||||
reservations:
|
resources:
|
||||||
devices:
|
reservations:
|
||||||
- driver: nvidia
|
devices:
|
||||||
device_ids: ['0']
|
- driver: nvidia
|
||||||
capabilities: [compute, utility]
|
device_ids: [ '0' ]
|
||||||
|
capabilities: [ compute, utility ]
|
||||||
|
|
||||||
name: webui-docker
|
name: webui-docker
|
||||||
|
|
||||||
services:
|
services:
|
||||||
download:
|
download:
|
||||||
build: ./services/download/
|
build: ./services/download/
|
||||||
profiles: ["download"]
|
profiles: [ "download" ]
|
||||||
volumes:
|
volumes:
|
||||||
- *v1
|
- *v1
|
||||||
|
|
||||||
auto: &automatic
|
auto:
|
||||||
|
&automatic
|
||||||
<<: *base_service
|
<<: *base_service
|
||||||
profiles: ["auto"]
|
profiles: [ "auto" ]
|
||||||
build: ./services/AUTOMATIC1111
|
build: ./services/AUTOMATIC1111
|
||||||
image: sd-auto:58
|
image: sd-auto:58
|
||||||
environment:
|
environment:
|
||||||
- CLI_ARGS=--allow-code --medvram --xformers --enable-insecure-extension-access --api
|
- CLI_ARGS=--allow-code --medvram --xformers --enable-insecure-extension-access --api --gradio-auth ${GRADIO_AUTH}
|
||||||
|
|
||||||
auto-cpu:
|
auto-cpu:
|
||||||
<<: *automatic
|
<<: *automatic
|
||||||
profiles: ["auto-cpu"]
|
profiles: [ "auto-cpu" ]
|
||||||
deploy: {}
|
deploy: {}
|
||||||
environment:
|
environment:
|
||||||
- CLI_ARGS=--no-half --precision full --allow-code --enable-insecure-extension-access --api
|
- CLI_ARGS=--no-half --precision full --allow-code --enable-insecure-extension-access --api
|
||||||
|
|
||||||
invoke: &invoke
|
invoke:
|
||||||
|
&invoke
|
||||||
<<: *base_service
|
<<: *base_service
|
||||||
profiles: ["invoke"]
|
profiles: [ "invoke" ]
|
||||||
build: ./services/invoke/
|
build: ./services/invoke/
|
||||||
image: sd-invoke:29
|
image: sd-invoke:29
|
||||||
environment:
|
environment:
|
||||||
|
|
@ -55,19 +57,19 @@ services:
|
||||||
# - PRELOAD=true
|
# - PRELOAD=true
|
||||||
# - CLI_ARGS=--always_use_cpu
|
# - CLI_ARGS=--always_use_cpu
|
||||||
|
|
||||||
comfy: &comfy
|
comfy:
|
||||||
|
&comfy
|
||||||
<<: *base_service
|
<<: *base_service
|
||||||
profiles: ["comfy"]
|
profiles: [ "comfy" ]
|
||||||
build: ./services/comfy/
|
build: ./services/comfy/
|
||||||
image: sd-comfy:2
|
image: sd-comfy:2
|
||||||
tty: true
|
tty: true
|
||||||
environment:
|
environment:
|
||||||
- CLI_ARGS=
|
- CLI_ARGS=
|
||||||
|
|
||||||
|
|
||||||
comfy-cpu:
|
comfy-cpu:
|
||||||
<<: *comfy
|
<<: *comfy
|
||||||
profiles: ["comfy-cpu"]
|
profiles: [ "comfy-cpu" ]
|
||||||
deploy: {}
|
deploy: {}
|
||||||
environment:
|
environment:
|
||||||
- CLI_ARGS=--cpu
|
- CLI_ARGS=--cpu
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue