| title | emoji | colorFrom | colorTo | sdk | pinned |
|---|---|---|---|---|---|
n8n_02 |
🔥 |
green |
red |
docker |
false |
n8n 是一个强大的开源自动化工具,本项目通过 Docker 方式将 n8n 部署在 Huggingface Spaces 上,实现个人云端自动化平台。
n8n 是一个强大的开源自动化工具,本项目通过 Docker 方式将 n8n 部署在 Huggingface Spaces 上,实现个人云端自动化平台。
本项目基于官方 n8n Docker 镜像,适配 Huggingface Spaces 的部署环境。你可以在 Huggingface Spaces 上一键运行属于自己的 n8n 服务,随时随地访问和管理自动化流程。
- Fork 或上传本项目到你的 Huggingface Space
- 选择 Space 类型为
Docker - Space 会自动根据
Dockerfile构建并启动 n8n 服务 - 构建完成后,访问 Space 提供的 Web 界面(端口已适配为 7860)
- 默认端口已由 n8n 的 5678 改为 7860,兼容 Huggingface Spaces 的 Web 服务要求
- 数据持久化目录为
/home/node/.n8n,可在 Space 设置中配置持久化存储 - 如需自定义 webhook 地址,可设置
WEBHOOK_URL环境变量
| 变量名 | 说明 | 默认值 |
|---|---|---|
| N8N_HOST | 监听地址 | 0.0.0.0 |
| N8N_PORT | 服务端口 | 7860 |
| N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS | 权限修复 | true |
| WEBHOOK_URL | 外部 webhook 地址 | 空 |
| N8N_RUNNERS_ENABLED | 启用 task runners | true |
n8n 的所有数据(如 workflow、凭据等)默认存储在 /home/node/.n8n 目录。建议在 Huggingface Space 设置中启用持久化存储,避免数据丢失。
- 零运维:无需服务器,直接在 Huggingface Spaces 云端运行
- 一键部署:只需上传或 Fork 即可自动构建
- 安全隔离:每个 Space 独立运行,数据互不干扰
- 开源可定制:可根据需求修改 Dockerfile 或 n8n 配置
- 支持 Webhook 与自动化:适合个人、团队的自动化需求
n8n is a powerful open-source workflow automation tool. This project enables you to deploy n8n on Huggingface Spaces using Docker, so you can run your own cloud-based automation platform easily.
This project is based on the official n8n Docker image and is adapted for Huggingface Spaces. You can run your own n8n service on Huggingface Spaces with one click, and manage your workflows anytime, anywhere.
- Fork or upload this repo to your Huggingface Space
- Select Space type as
Docker - The Space will automatically build and start n8n using the
Dockerfile - After build, access the web UI via the Space URL (port 7860)
- Default port changed from 5678 to 7860 for Huggingface Spaces compatibility
- Data is stored in
/home/node/.n8n, enable persistent storage in Space settings - Set
WEBHOOK_URLenv variable to customize webhook address
| Name | Description | Default |
|---|---|---|
| N8N_HOST | Listen address | 0.0.0.0 |
| N8N_PORT | Service port | 7860 |
| N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS | Permission fix | true |
| WEBHOOK_URL | External webhook URL | (empty) |
| N8N_RUNNERS_ENABLED | Enable task runners | true |
All n8n data (workflows, credentials, etc.) are stored in /home/node/.n8n. It is recommended to enable persistent storage in your Huggingface Space to avoid data loss.
- Zero maintenance: No server needed, runs in the cloud
- One-click deployment: Just upload or fork to build automatically
- Secure isolation: Each Space runs independently
- Open-source & customizable: Modify Dockerfile or n8n config as needed
- Webhook & automation support: Perfect for individuals and teams

