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

37 lines
1.4 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安装与更新"
type: source
tags: [n8n, Docker, 安装]
date: 2025-03-30
---
## Source File
- [[raw/Agent/n8n docker install & update.md]]
## Summary
- 核心主题n8n Docker安装、更新及容器内代理配置
- 问题域n8n官方镜像安装、配置SOCKS5代理绕过防火墙
- 方法/机制Dockerfile扩展官方镜像安装curl/wgetdocker-compose编排ALL_PROXY设置代理
- 结论/价值容器内网络走宿主机SOCKS5代理宿主机防火墙限制Docker网桥访问代理端口
## Key Claims
- Dockerfile扩展官方镜像安装curl和wget保持node用户保证安全性
- docker-compose配置N8N_PROTOCOL=httpsWEBHOOK_URL设置ALL_PROXY指向宿主机Docker网桥IP
- 宿主机防火墙允许Docker网桥访问代理端口 sudo ufw allow from 172.18.0.0/16 to any port 10808
- 更新流程docker compose pull → docker compose down → docker compose up -d
- 容器内测试科学上网curl --socks5 172.18.0.1:10808 https://ifconfig.me
## Key Concepts
- [[Docker容器代理配置]]容器内通过ALL_PROXY环境变量走宿主机SOCKS5代理
- [[Docker网络隔离]]宿主机防火墙控制Docker网桥访问权限
## Key Entities
- [[n8n]]:工作流自动化平台
- [[Docker]]:容器化平台
## Connections
- [[n8n-docker-install-update]] ← documents ← [[Docker容器代理配置]]
## Contradictions
- 无冲突