generated from jim60105/Dockerfile-template
-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.forge.yml
50 lines (49 loc) · 1.71 KB
/
docker-compose.forge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
services:
stable-diffusion-webui-forge:
extends:
file: docker-compose.yml
service: stable-diffusion-webui
container_name: stable-diffusion-webui-forge
image: ghcr.io/jim60105/stable-diffusion-webui:forge
command:
# https://github.com/lllyasviel/stable-diffusion-webui-forge/blob/main/modules/cmd_args.py
#
# Already configured in the entrypoint and should remain unchanged!!
# --listen --port 7860 --data-dir /data
#
# Recommanded:
- --xformers
- --api
- --allow-code
#
# You may or may not need:
## Enable installing/modifying extensions from the UI, please pay attention to security considerations.
- --enable-insecure-extension-access
#
## Optimizations
## https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Optimizations
- --opt-sdp-attention
- --opt-sdp-no-mem-attention
- --opt-split-attention
- --opt-channelslast
#
## Debug logging
# - --loglevel
# - DEBUG
# - --log-startup
#
## Forge Backend
##! Start the container once and check the logs.
##! Forge will advise you on which optimization flags to add depending on your graphics card.
## https://github.com/lllyasviel/stable-diffusion-webui-forge?tab=readme-ov-file#forge-backend
## https://github.com/lllyasviel/stable-diffusion-webui-forge/blob/main/ldm_patched/modules/args_parser.py
##
### This flag will make things slower but less risky
# - --always-offload-from-vram
### These flags will make things faster but more risky
# - --cuda-malloc
# - --cuda-stream
# - --pin-shared-memory
volumes:
cache:
repositories: