stable-diffusion-webui-docker/docker-compose.yml

76 lines
1.5 KiB
YAML
Raw Normal View History

2022-08-27 13:38:12 +02:00
version: '3.9'
x-base_service: &base_service
2022-08-27 13:38:12 +02:00
ports:
- "7860:7860"
2023-01-15 16:54:39 +01:00
- "7861:7861"
2022-08-27 13:38:12 +02:00
volumes:
- &v1 ./data:/data
- &v2 ./output:/output
2023-01-15 17:31:34 +01:00
- &v3 ./output0:/output0
- &v4 ./output1:/output1
2022-08-27 13:38:12 +02:00
deploy:
resources:
reservations:
devices:
- driver: nvidia
2023-01-15 16:54:39 +01:00
device_ids: ['0,1']
2022-08-27 13:38:12 +02:00
capabilities: [gpu]
name: webui-docker
services:
download:
build: ./services/download/
profiles: ["download"]
volumes:
- *v1
2023-01-15 16:54:39 +01:00
auto0: &automatic0
<<: *base_service
2023-01-15 16:54:39 +01:00
profiles: ["auto0"]
2023-01-15 17:03:11 +01:00
build: ./services/AUTOMATIC1111_0
2023-01-15 16:54:39 +01:00
image: sd-auto0:33
environment:
2023-01-15 16:54:39 +01:00
- CLI_ARGS=--allow-code --xformers --enable-insecure-extension-access --api
auto1: &automatic1
<<: *base_service
profiles: ["auto1"]
2023-01-15 17:03:11 +01:00
build: ./services/AUTOMATIC1111_1
2023-01-15 16:54:39 +01:00
image: sd-auto1:33
environment:
- CLI_ARGS=--allow-code --xformers --enable-insecure-extension-access --api
auto-cpu:
<<: *automatic
profiles: ["auto-cpu"]
deploy: {}
environment:
- CLI_ARGS=--no-half --precision full
invoke:
<<: *base_service
profiles: ["invoke"]
build: ./services/invoke/
image: sd-invoke:17
environment:
- PRELOAD=true
- CLI_ARGS=
sygil: &sygil
<<: *base_service
profiles: ["sygil"]
build: ./services/sygil/
image: sd-sygil:16
environment:
- CLI_ARGS=--optimized-turbo
- USE_STREAMLIT=0
sygil-sl:
<<: *sygil
profiles: ["sygil-sl"]
environment:
- USE_STREAMLIT=1