-
Notifications
You must be signed in to change notification settings - Fork 33
2.1.2 Frontend: ComfyUI
Handle:
comfyui
URL: http://localhost:34031
![][github-release-date-shgield]
This ui will let you design and execute advanced stable diffusion pipelines using a graph/nodes/flowchart based interface.
# [Optional] Pre-pull the comfyui images, ~4GB
# otherwise will be pulled on start
harbor pull comfyui
# Start the service
# Note that this will
harbor up comfyui
# [Recommended] see service logs to monitor
# initial downloads and setup
harbor logs comfyui -n 100
# [Optional] once started, open the UI
# in your default browser
harbor open comfyui
Note
Harbor uses AI Dock to run ComfyUI. By default, it has authentication disabled, but you should re-enable it if exposing the ComfyUI over the network (sadly Open WebUI integration won't work when auth is enabled).
# Enable web AI Dock auth
harbor comfyui auth true
# Get current login credentials
harbor comfyui user
harbor comfyui password
# Set new login credentials
harbor comfyui user me
harbor comfyui password mypassword
# Underlying config aliases and ENV variables
harbor config get comfyui.user # HARBOR_COMFYUI_USER
harbor config get comfyui.password # HARBOR_COMFYUI_PASSWORD
# Underlying config aliases and ENV variables
harbor config get comfyui.auth # HARBOR_COMFYUI_AUTH
When enabled, the comfyui.password
can also be used as a token for ComfyUI API. See this file in ai-dock to see all possible auth ways.
Harbor uses AI Dock setup that includes a provisioning script for Flux models compatible with the Open WebUI. You can find provisioning script documentation here, and list of available scripts in the AI Dock's ComfyUI repo here.
By default, Harbor will load ComfyUI pre-configured to run FLUX models.
ComfyUI is mainly configured via the UI itself. Harbor will use the comfyui
folder in the workspace to store the configuration files.
# Show ComfyUI workspace folder
echo $(harbor home)/comfyui
Important
ComfyUI uses pip
dependencies for managing custom nodes. Those are not automatically synced to the local workspace, so won't automatically persist between Harbor restarts.
# Sync workspace after updating the nodes
harbor comfyui workspace sync
Additional configuration via Harbor CLI:
# See current version
harbor comfyui version
# Set the version to use
# Accepts package tags from
# AI Dock GHCR: https://github.com/ai-dock/comfyui/pkgs/container/comfyui
harbor comfyui version latest-rocm
When running ComfyUI, Open WebUI will also be pre-configured to run a FLUX-based workflow for generating images.
Please refer to the official Open WebUI documentation to adjust the image generation workflow.
Note
Open WebUI will not work with ComfyUI when the authentication is enabled.