mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-04-20 22:03:58 +00:00
update folders
This commit is contained in:
parent
f76f8d4671
commit
4adc6727cf
13 changed files with 36 additions and 13 deletions
|
|
@ -1,22 +1,12 @@
|
||||||
version: '3.9'
|
version: '3.9'
|
||||||
|
|
||||||
services:
|
x-base_service: &base_service
|
||||||
model:
|
|
||||||
build:
|
|
||||||
context: ./hlky/
|
|
||||||
args:
|
|
||||||
# You can choose any commit sha from https://github.com/hlky/stable-diffusion/commits/main
|
|
||||||
# USE AT YOUR OWN RISK! otherwise just leave it empty.
|
|
||||||
BRANCH:
|
|
||||||
WEBUI_SHA:
|
|
||||||
ports:
|
ports:
|
||||||
- "7860:7860"
|
- "7860:7860"
|
||||||
volumes:
|
volumes: &base_volumes
|
||||||
- ./cache:/cache
|
- ./cache:/cache
|
||||||
- ./output:/output
|
- ./output:/output
|
||||||
- ./models:/models
|
- ./models:/models
|
||||||
environment:
|
|
||||||
- CLI_ARGS=--extra-models-cpu --optimized-turbo
|
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
reservations:
|
reservations:
|
||||||
|
|
@ -24,3 +14,32 @@ services:
|
||||||
- driver: nvidia
|
- driver: nvidia
|
||||||
device_ids: ['0']
|
device_ids: ['0']
|
||||||
capabilities: [gpu]
|
capabilities: [gpu]
|
||||||
|
|
||||||
|
name: webui-docker
|
||||||
|
|
||||||
|
services:
|
||||||
|
hlky:
|
||||||
|
<<: *base_service
|
||||||
|
profiles: ["hlky"]
|
||||||
|
build: ./services/hlky/
|
||||||
|
environment:
|
||||||
|
- CLI_ARGS=--extra-models-cpu --optimized-turbo
|
||||||
|
|
||||||
|
automatic1111: &automatic
|
||||||
|
<<: *base_service
|
||||||
|
profiles: ["auto"]
|
||||||
|
build: ./services/AUTOMATIC1111
|
||||||
|
environment:
|
||||||
|
- CLI_ARGS=--medvram --opt-split-attention
|
||||||
|
|
||||||
|
automatic1111-cpu:
|
||||||
|
<<: *automatic
|
||||||
|
profiles: ["auto-cpu"]
|
||||||
|
deploy: {}
|
||||||
|
environment:
|
||||||
|
- CLI_ARGS=--no-half --precision full
|
||||||
|
|
||||||
|
lstein:
|
||||||
|
<<: *base_service
|
||||||
|
profiles: ["lstein"]
|
||||||
|
build: ./services/lstein/
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,11 @@ RUN pip install --prefer-binary -U --no-cache-dir opencv-python-headless markups
|
||||||
ENV TRANSFORMERS_CACHE=/cache/transformers TORCH_HOME=/cache/torch CLI_ARGS=""
|
ENV TRANSFORMERS_CACHE=/cache/transformers TORCH_HOME=/cache/torch CLI_ARGS=""
|
||||||
|
|
||||||
COPY . /docker
|
COPY . /docker
|
||||||
RUN chmod +x /docker/mount.sh && python3 /docker/info.py ${ROOT}/modules/ui.py
|
RUN chmod +x /docker/mount.sh && python3 /docker/info.py ${ROOT}/modules/ui.py && \
|
||||||
|
#TODO: hacks for cpu suppoort
|
||||||
|
find ${ROOT} -type f -name '*.py' -exec sed -i "s/torch\.has_cuda/torch.cuda.is_available()/g" {} \; && \
|
||||||
|
find ${ROOT} -type f -name '*.py' -exec sed -i "s/torch\.has_mps/False/g" {} \;
|
||||||
|
|
||||||
|
|
||||||
WORKDIR ${WORKDIR}
|
WORKDIR ${WORKDIR}
|
||||||
EXPOSE 7860
|
EXPOSE 7860
|
||||||
0
AUTOMATIC1111/mount.sh → services/AUTOMATIC1111/mount.sh
Executable file → Normal file
0
AUTOMATIC1111/mount.sh → services/AUTOMATIC1111/mount.sh
Executable file → Normal file
0
hlky/mount.sh → services/hlky/mount.sh
Executable file → Normal file
0
hlky/mount.sh → services/hlky/mount.sh
Executable file → Normal file
Loading…
Add table
Add a link
Reference in a new issue