Skip to content

Commit

Permalink
chore: improve Docker performance for caching
Browse files Browse the repository at this point in the history
- Add a `SD_WEBUI_CACHE_FILE` environment variable to the `docker-compose.yml` file
- Comment instructions added for user guidance regarding volume utilization over bind mount for improved performance.

Signed-off-by: 陳鈞 <[email protected]>
  • Loading branch information
jim60105 committed Apr 5, 2024
1 parent 4ac975b commit f0b447a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ services:
- --opt-channelslast
ports:
- 7860:7860
environment:
# Use the volume to get better performance then bind mount.
# And users should not touch these files in general.
- SD_WEBUI_CACHE_FILE=/.cache/cache.json
tmpfs:
- /tmp
volumes:
Expand Down

0 comments on commit f0b447a

Please sign in to comment.