From a1de389d2b27797b19fd4c1a46d4323e94641e4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=B3=E9=88=9E?= Date: Fri, 5 Apr 2024 16:18:01 +0800 Subject: [PATCH] refactor: refactor docker-compose for readability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rearranged volumes and tmpfs in the `docker-compose.yml` to improve readability and manageability - Removed a comment linking to a specific commit of `docker-stable-diffusion-webui`, simplifying the file. Signed-off-by: 陳鈞 --- docker-compose.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ce7a89b..6ff2954 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,7 +20,7 @@ services: - --no-half-vae # You may or may not need: ## Enable installing/modifying extensions from the UI, please pay attention to security considerations. - - --enable-insecure-extension-access + - --enable-insecure-extension-access ## Optimizations ## https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Optimizations - --medvram @@ -33,15 +33,14 @@ services: - /tmp volumes: - ./data:/data + - cache:/.cache + - repositories:/app/repositories # Bind the following to the script folder to fix some extensions that do not respect the --data-dir. - ./data/config_states:/app/config_states - ./data/extensions:/app/extensions - ./data/models:/app/models - - cache:/.cache - - repositories:/app/repositories + # Using the long syntax requires the referenced file/folder to be created beforehand. - type: bind - # Using the long syntax requires the referenced file/folder to be created beforehand. - # https://github.com/jim60105/docker-stable-diffusion-webui/commit/b08dfa4130019003b2c51fd8be7a8b78837cbeb1#commitcomment-140562903 source: ./data/ui-config.json target: /app/ui-config.json deploy: