mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-02-08 00:24:25 +01:00
update folders
This commit is contained in:
parent
f76f8d4671
commit
4adc6727cf
|
|
@ -1,22 +1,12 @@
|
|||
version: '3.9'
|
||||
|
||||
services:
|
||||
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:
|
||||
x-base_service: &base_service
|
||||
ports:
|
||||
- "7860:7860"
|
||||
volumes:
|
||||
volumes: &base_volumes
|
||||
- ./cache:/cache
|
||||
- ./output:/output
|
||||
- ./models:/models
|
||||
environment:
|
||||
- CLI_ARGS=--extra-models-cpu --optimized-turbo
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
|
|
@ -24,3 +14,32 @@ services:
|
|||
- driver: nvidia
|
||||
device_ids: ['0']
|
||||
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=""
|
||||
|
||||
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}
|
||||
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…
Reference in a new issue