Files
n8n-local/README.md
muzi 211e8399a9 refactor(n8n): 移除环境变量配置简化本地部署流程
- 删除 .env.example 文件,将默认配置直接写入 docker-compose.yml
- 更新 .gitignore 添加 .idea 目录忽略
- 修改 docker-compose.yml 将环境变量硬编码为默认值
- 移除 README.md 中关于复制 .env.example 的说明
- 添加 Mac 平台兼容性配置说明和可选参数设置
2026-01-26 19:28:26 +08:00

22 lines
520 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# n8n 本地运行Docker Compose
## 前置要求
- 已安装并启动 Docker Desktop
- 终端能执行:
- docker -v
- docker compose version
## 安装与启动
```bash
git clone <你的仓库地址>
cd n8n-local
docker compose up -d
docker compose ps
```
备注:
- 当前固定使用 `n8nio/n8n:2.2.4`
- `postgres` 加了健康检查,`n8n` 会等待数据库就绪后再启动
- Mac 上如果遇到 `Restarting (139)`,已在 `docker-compose.yml` 中加入 `platform: linux/amd64``user: "0:0"`