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

57 lines
1.1 KiB
YAML
Raw Normal View History

2022-08-27 13:38:12 +02:00
version: '3.9'
2022-09-13 19:01:28 +02:00
x-base_service:
&base_service
ports:
- "7860:7860"
volumes:
- &v1 ./cache:/cache
- &v2 ./output:/output
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: [ '0' ]
capabilities: [ gpu ]
2022-09-13 18:35:20 +02:00
name: webui-docker
services:
download:
build: ./services/download/
2022-09-13 19:01:28 +02:00
profiles: [ "download" ]
2022-09-13 18:35:20 +02:00
volumes:
- *v1
hlky:
<<: *base_service
2022-09-13 19:01:28 +02:00
profiles: [ "hlky" ]
2022-09-13 18:35:20 +02:00
build: ./services/hlky/
environment:
- CLI_ARGS=--optimized-turbo
2022-09-13 19:01:28 +02:00
automatic1111:
&automatic
2022-09-13 18:35:20 +02:00
<<: *base_service
2022-09-13 19:01:28 +02:00
profiles: [ "auto" ]
2022-09-13 18:35:20 +02:00
build: ./services/AUTOMATIC1111
volumes:
- *v1
- *v2
- ./services/AUTOMATIC1111/config.json:/stable-diffusion-webui/config.json
environment:
- CLI_ARGS=--medvram --opt-split-attention
automatic1111-cpu:
<<: *automatic
2022-09-13 19:01:28 +02:00
profiles: [ "auto-cpu" ]
2022-09-13 18:35:20 +02:00
deploy: {}
environment:
- CLI_ARGS=--no-half --precision full
lstein:
<<: *base_service
2022-09-13 19:01:28 +02:00
profiles: [ "lstein" ]
2022-09-13 18:35:20 +02:00
build: ./services/lstein/