I am lifting the n8n using docker compose, here is my docker-compose.yaml:
services:
n8n:
image: docker.n8n.io/n8nio/n8n
restart: always
ports:
- "5678:5678"
environment:
- N8N_PORT=5678
- N8N_SECURE_COOKIE=false
- N8N_PROTOCOL=http
- N8N_HOST=localhost
- WEBHOOK_URL=http://localhost:5678/
- GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
volumes:
- n8n_data:/home/node/.n8n
- ./local-files:/files
volumes:
n8n_data:
On the same machine I have a proxy up using xray here is the most important thing from the config:
"inbounds": [
{
"port": 1080,
"listen": "0.0.0.0",
"protocol": "socks",
"settings": {
"udp": true
}
}
],
"outbounds": [
{
"protocol": "vless",
If I check it with curl, everything works.
curl --socks5-hostname 0.0.0.0:1080 https://api.ipify.org
In the output ip of the server vless
How do I get all the n8n container traffic to go to the internet through the proxy?