forked from kestr31/docker-stable-diffusion-webui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (36 loc) · 1.19 KB
/
docker-compose.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
version: "3"
services:
stable-diffusion:
image: ${IMAGE_VERSION}
restart: unless-stopped
container_name: ${CONTAINER_NAME}
secrets:
- gradio_auth
environment:
- NVIDIA_DISABLE_REQUIRE=1
- NVIDIA_DRIVER_CAPABILITIES=all
- UID=${UID}
- GID=${GID}
- DIR_GRADIO_AUTH=/run/secrets/gradio_auth
- DEBUG_MODE=${DEBUG_MODE}
volumes:
- ${DIR_MODELS}:/home/user/stable-diffusion-webui/models
- ${DIR_OUT}:/home/user/stable-diffusion-webui/outputs
- ${DIR_STYLES}:/home/user/stable-diffusion-webui/styles
- ${DIR_EXTENSIONS}:/home/user/stable-diffusion-webui/extensions
- ${DIR_UI_CONFIG}:/home/user/stable-diffusion-webui/settings/ui-config-user.json
# - ${DIR_UI_SETTINGS}:/home/user/stable-diffusion-webui/settings/config-user.json
- ${DIR_WEBUI_SETTINGS}:/home/user/stable-diffusion-webui/settings/webui-user.sh
# SET FOR DEBUG PURPOSE
# - ./scripts/entrypoint.sh:/usr/local/bin/entrypoint.sh
ports:
- ${WEBUI_PORT}:7860
privileged: true
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
secrets:
gradio_auth:
file: ${DIR_GRADIO_AUTH}