Skip to content

Commit

Permalink
refactor: refactor docker-compose for readability
Browse files Browse the repository at this point in the history
- 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: 陳鈞 <jim60105@gmail.com>
  • Loading branch information
jim60105 committed Apr 5, 2024
1 parent 069a7b3 commit a1de389
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit a1de389

Please sign in to comment.