Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ show_help() {
echo " --download-models Download default models"
echo " --build-engines Build TensorRT engines for default models"
echo " --opencv-cuda Setup OpenCV with CUDA support"
echo " --server Start the Comfystream server, UI and ComfyUI"
echo " --comfyui Start ComfyUI with ComfyStream custom node (http://0.0.0.0:8188)"
echo " --api Start ComfyStream API server only (http://0.0.0.0:8889)"
echo " --ui Start ComfyStream UI (https://0.0.0.0:3001)"
echo " --help Show this help message"
echo ""
}
Expand Down Expand Up @@ -170,11 +172,24 @@ if [ "$1" = "--opencv-cuda" ]; then
shift
fi

if [ "$1" = "--server" ]; then
if [ "$1" = "--comfyui" ]; then
/usr/bin/supervisord -c /etc/supervisor/supervisord.conf
shift
fi

cd /workspace/comfystream
if [ "$1" = "--api" ]; then
cd /workspace/comfystream
conda activate comfystream
python server/app.py --workspace /workspace/ComfyUI --port 8889 --host 0.0.0.0
shift
fi

if [ "$1" = "--ui" ]; then
cd /workspace/comfystream
conda activate comfystream
cd ui
npm run dev:https
shift
fi

exec "$@"
Loading
Loading