Files
nexus/wiki/sources/n8n-docker-install-update.md

42 lines
1.7 KiB
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.
---
title: "n8n-docker-install-update"
type: source
tags: [n8n, Docker, 安装配置]
date: 2026-03-19
---
## Source File
- [[raw/Agent/n8n docker install & update.md]]
## Summary
- 核心主题n8n Docker安装、更新及容器内网络代理配置完整指南
- 问题域Ubuntu2服务器上n8n Docker部署、网络代理配置、科学上网
- 方法/机制Dockerfile扩展官方镜像安装curl/wgetdocker-compose配置HTTPS环境和SOCKS5代理
- 结论/价值n8n容器化部署的最佳实践配置容器内流量通过宿主机代理实现科学上网
## Key Claims
- n8n官方镜像通过Dockerfile扩展安装curl和wget工具
- WEBHOOK_URL必须设为HTTPS地址否则Telegram Trigger无法工作
- ALL_PROXY=socks5://172.21.0.1:10808使容器内所有HTTP/HTTPS流量走SOCKS5代理
- Docker网桥IP需通过docker network inspect确认172.21.0.1为默认网段
- 更新流程docker compose pull → docker compose down → docker compose up -d
## Key Quotes
> "容器内HTTP/HTTPS流量和n8n请求都会走SOCKS5"
> "WEBHOOK_URL=https://n8n.ishenwei.online/" — Telegram Trigger必须
## Key Concepts
- [[Docker容器化]]n8n部署方式容器与宿主机网络隔离
- [[SOCKS5代理]]:容器内流量通过宿主机代理实现科学上网
- [[Webhook]]n8n对外暴露的回调端点必须HTTPS
- [[n8n环境变量]]N8N_PROTOCOL、HWEBHOOK_URL、N8N_TRUST_PROXY等关键配置
## Key Entities
- [[N8N]]:开源工作流自动化平台
- [[Docker]]容器化平台n8n部署环境
## Connections
- [[N8N]] ← deployed_as ← [[Docker容器化]]
- [[Docker容器化]] ← network ← [[SOCKS5代理]] ← via ← [[V2Ray]]
- [[N8N]] ← requires ← [[Webhook]] ← must_be ← HTTPS