A secure, remote, and persistent development environment for ComfyUI that works with cloud GPU services. This container combines Tailscale's secure VPN service with VSCode's remote development capabilities, making it perfect for developing on services like RunPod. Your development environment persists between sessions, so you only pay for GPU time when actively developing.
- Set up Tailscale and get an auth key (Instructions)
- Configure VSCode with SSH keys (Instructions)
- Create a RunPod deployment with the required environment variables (Instructions)
- Connect to your development environment (Instructions)
- Start developing with ComfyUI!
Required:
COMFY_DEV_TAILSCALE_AUTH- Your Tailscale authentication keyCOMFY_DEV_SSH_PUBKEY- Your SSH public key for VSCode remote access
Optional:
COMFY_DEV_PYTHON_VERSION- Python version for the environment (default: 3.12.4)COMFY_DEV_START_COMFY- Set totrueto start ComfyUI automaticallyCOMFY_DEV_GIT_FORK- URL to your ComfyUI fork (if using one)COMFY_DEV_TAILSCALE_MACHINENAME- Custom name for Tailscale device
# Make scripts executable
chmod +x scripts/*.sh
# Build the Docker image
./scripts/build.sh
# Test the container locally
./scripts/test.sh --tailscale-auth YOUR_TAILSCALE_AUTH_KEY
# Push to Docker Hub (if you have permissions)
./scripts/push.shcomfyui-dev/
├── docker/ # Docker-related files
│ ├── Dockerfile # Multi-stage Dockerfile
│ └── scripts/ # Container scripts
├── scripts/ # Build and utility scripts
├── config/ # Configuration files
│ ├── default.env # Default environment settings
│ └── vscode/ # VSCode configurations
├── docs/ # Documentation
└── media/ # Images and media files
- Secure Remote Access: SSH and Tailscale VPN integration
- Persistent Development: State saved between sessions
- GPU Acceleration: CUDA 12.4 support for AI workloads
- VSCode Integration: Seamless remote development
- Python Environment: Optimized with uv package manager
- Debugging Support: Full debugging capabilities
MIT License - See LICENSE file for details.
Need more help? Open an issue
