move flag to compose for cpu

This commit is contained in:
AbdBarho 2022-10-15 10:45:09 +02:00
parent 9846c04e3e
commit 8e2356b7ff
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ services:
profiles: ["auto"] profiles: ["auto"]
build: ./services/AUTOMATIC1111 build: ./services/AUTOMATIC1111
environment: environment:
- CLI_ARGS=--allow-code --medvram - CLI_ARGS=--allow-code --medvram --xformers
auto-cpu: auto-cpu:
<<: *automatic <<: *automatic

View file

@ -84,4 +84,4 @@ WORKDIR ${WORKDIR}
EXPOSE 7860 EXPOSE 7860
# run, -u to not buffer stdout / stderr # run, -u to not buffer stdout / stderr
CMD /docker/mount.sh && \ CMD /docker/mount.sh && \
python3 -u ../../webui.py --listen --port 7860 --hide-ui-dir-config --ckpt-dir ${ROOT}/models/Stable-diffusion --xformers ${CLI_ARGS} python3 -u ../../webui.py --listen --port 7860 --hide-ui-dir-config --ckpt-dir ${ROOT}/models/Stable-diffusion ${CLI_ARGS}