Easy Docker setup for Stable Diffusion with user-friendly UI
Find a file
Seth Moore a5367ace32
AUTOMATIC1111: Enable running as non root user.
Expose build args to container which allow the web service
to run as given uid:gid.

By default, this behavior is "off". Building via docker compose still
defaults to root:root on everything. Unless these args are explicitly
set, no users should notice a difference.

Build arguments are also exposed as Docker environment variables, so they can
be freely referenced in the `entrypoint.sh`

Output files will be owned by PUID and PGID, so if set, no more root:root
images (unless desired).

New arguments:
  - ARG PUID=0
  - ARG PGID=0
  - ARG USER_HOME=/root

New environment variable:
  - RSYNC_FLAGS
    - NFS share doesn't like `-a` changing every bit on a directory

Example docker-compose.override.yaml using these flags

```
version: '3.9'

services:
  auto:
    environment:
      RSYNC_FLAGS: -vrlgotO
    build:
      args:
        USER_HOME: /opt/stablediffusion
        PUID: 1000
        PGID: 1002
    volumes:
      - /media/data:/data
      - /tmp:/output
  download:
    volumes:
      - /media/data:/data
```
2023-07-13 18:23:11 -04:00
.devscripts v8 (#516) 2023-06-24 10:06:30 +02:00
.github Deprecate Sygil (#450) 2023-05-16 18:58:52 +02:00
.vscode Force LF (#24) 2022-09-03 06:59:16 +02:00
data v8 (#516) 2023-06-24 10:06:30 +02:00
output Initial 2022-08-27 12:38:12 +01:00
services AUTOMATIC1111: Enable running as non root user. 2023-07-13 18:23:11 -04:00
.editorconfig Force LF (#24) 2022-09-03 06:59:16 +02:00
.gitattributes Force LF (#24) 2022-09-03 06:59:16 +02:00
.gitignore Fix overwriting existing values in config.json in auto (#418) 2023-05-06 07:38:36 +02:00
docker-compose.yml Auto 1.4.0 (#507) 2023-07-02 08:15:51 +02:00
LICENSE [BREAKING] Rename UIs (#254) 2022-12-04 11:00:28 +01:00
README.md InvokeAI 2.3.5.post2 (#491) 2023-05-29 19:07:01 +02:00

Stable Diffusion WebUI Docker

Run Stable Diffusion on your machine with a nice UI without any hassle!

Setup & Usage

Visit the wiki for Setup and Usage instructions, checkout the FAQ page if you face any problems, or create a new issue!

Features

This repository provides multiple UIs for you to play around with stable diffusion:

AUTOMATIC1111

Full feature list here, Screenshots:

Text to image Image to image Extras

InvokeAI

Full feature list here, Screenshots:

Text to image Image to image Extras

ComfyUI

Full feature list here, Screenshot:

Workflow

Contributing

Contributions are welcome! Create a discussion first of what the problem is and what you want to contribute (before you implement anything)

Disclaimer

The authors of this project are not responsible for any content generated using this interface.

This license of this software forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please read the license.

Thanks

Special thanks to everyone behind these awesome projects, without them, none of this would have been possible: