Skip to content

universonic/docker-comfyui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ComfyUI

The most powerful and modular stable diffusion GUI and backend. This repository is for NVIDIA GPUs only.

For detailed command-line flags, see Official instructions.

Usage

Basic example:

docker run --gpus all --restart unless-stopped -p 8188:8188 --name comfyui -d universonic/comfyui

Use SSL/TLS:

docker run --gpus all --restart unless-stopped -p 8188:8188 \
  -v /my/key.pem:/app/key.pem \
  -v /my/cert.pem:/app/cert.pem \
  --name comfyui -d universonic/comfyui --tls-keyfile /app/key.pem --tls-certfile /app/cert.pem

Where to Store Data

It is recommended to create a data directory on the host system (outside the container) and mount this to a directory visible from inside the container. This places the data files (including: extensions, models, outputs, etc.) in a known location on the host system, and makes it easy for tools and applications on the host system to access the files. The downside is that the user needs to make sure that the directory exists, and that e.g. directory permissions and other security mechanisms on the host system are set up correctly.

We will simply show the basic procedure here:

  1. Create a data directory on a suitable volume on your host system, e.g. /my/own/datadir.
  2. Start your comfyui container like this:
docker run --gpus all --restart unless-stopped -p 8188:8188 \
  -v /my/own/datadir/checkpoints:/app/comfyui/models/checkpoints \
  -v /my/own/datadir/output:/app/comfyui/output \
  -v /my/own/datadir/input:/app/comfyui/input \
  --name comfyui -d universonic/comfyui
  1. Troubleshooting with the following command if you encountered problems:
docker logs -f comfyui

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published