refactor(n8n): 移除环境变量配置简化本地部署流程

- 删除 .env.example 文件,将默认配置直接写入 docker-compose.yml
- 更新 .gitignore 添加 .idea 目录忽略
- 修改 docker-compose.yml 将环境变量硬编码为默认值
- 移除 README.md 中关于复制 .env.example 的说明
- 添加 Mac 平台兼容性配置说明和可选参数设置
This commit is contained in:
muzi
2026-01-26 19:28:26 +08:00
parent bcf6514564
commit 211e8399a9
4 changed files with 16 additions and 24 deletions

View File

@ -11,9 +11,6 @@
git clone <你的仓库地址>
cd n8n-local
cp .env.example .env
# 如端口冲突,编辑 .env 修改 N8N_PORT=5679
docker compose up -d
docker compose ps
```
@ -21,3 +18,4 @@ docker compose ps
备注:
- 当前固定使用 `n8nio/n8n:2.2.4`
- `postgres` 加了健康检查,`n8n` 会等待数据库就绪后再启动
- Mac 上如果遇到 `Restarting (139)`,已在 `docker-compose.yml` 中加入 `platform: linux/amd64``user: "0:0"`