Hi guys, i have been all day long trying to deploy n8n on my vps with docker without success. I have this docker-compose.yml file:
version: "3"
services:
n8n:
image: docker.n8n.io/n8nio/n8n
restart: always
ports:
- "5678:5678"
environment:
- N8N_HOST=domain.domain.dev
- N8N_PORT=5678
- N8N_PROTOCOL=https
- WEBHOOK_URL=https://domain.domain.dev/
- VUE_APP_URL_BASE_API=https://domain.domain.dev/
- VUE_APP_URL_BASE_WEBSOCKET=wss://domain.domain.dev/
- N8N_WEBSOCKET=true
- N8N_WEBSOCKET_PATH=/rest/push
- N8N_EDITOR_BASE_URL=https://domain.domain.dev/
- N8N_RUNNERS_ENABLED=true
- N8N_LOG_LEVEL=debug
- GENERIC_TIMEZONE=Europe/Madrid
- NODE_ENV=production
volumes:
- ~/.n8n:/home/node/.n8n
And i am using Nginx with this config:
server {
server_name domain.domain.dev;
location / {
proxy_pass http://localhost:5678;
proxy_http_version 1.1;
proxy_set_header Connection 'upgrade';
proxy_set_header Upgrade $http_upgrade;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/domain.domain.dev/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/domain.domain.dev/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = domain.domain.dev) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name domain.domain.dev;
listen 80;
return 404; # managed by Certbot
}
And getting this error on console when in Workflow:
index-BpdkKRP4.js:293262 [WebSocketClient] Connection lost, code=1008
onConnectionLost @ index-BpdkKRP4.js:293262Understand this warning
index-BpdkKRP4.js:293295 [WebSocketClient] Attempting to reconnect in 1000ms
index-BpdkKRP4.js:293262 [WebSocketClient] Connection lost, code=1008
onConnectionLost @ index-BpdkKRP4.js:293262Understand this warning
index-BpdkKRP4.js:293295 [WebSocketClient] Attempting to reconnect in 1000ms
index-BpdkKRP4.js:293262 [WebSocketClient] Connection lost, code=1008
onConnectionLost @ index-BpdkKRP4.js:293262Understand this warning
index-BpdkKRP4.js:293295 [WebSocketClient] Attempting to reconnect in 1000ms
If anyone can help me, i will appreciate it a lot