{"id":5952,"date":"2026-11-07T17:39:12","date_gmt":"2026-11-07T14:09:12","guid":{"rendered":"https:\/\/takcloud.com\/tutorial\/?p=5952"},"modified":"2026-11-07T17:53:48","modified_gmt":"2026-11-07T14:23:48","slug":"install-n8n-docker-vps","status":"publish","type":"post","link":"https:\/\/takcloud.com\/tutorial\/install-n8n-docker-vps\/","title":{"rendered":"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 n8n \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0645\u062c\u0627\u0632\u06cc \u0628\u0627 Docker \u0648 SSL"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u0628\u0627 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u062f\u0631 \u06f4 \u0645\u0631\u062d\u0644\u0647 \u0648 \u062d\u062f\u0648\u062f \u06f1\u06f5 \u062f\u0642\u06cc\u0642\u0647\u060c n8n \u0631\u0627 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0645\u062c\u0627\u0632\u06cc \u0644\u06cc\u0646\u0648\u06a9\u0633 (\u0627\u0648\u0628\u0648\u0646\u062a\u0648) \u062e\u0648\u062f\u062a\u0627\u0646 \u0628\u0627 \u062f\u0627\u0645\u0646\u0647 \u0648 SSL \u0631\u0627\u06cc\u06af\u0627\u0646 \u0631\u0627\u0647 \u0645\u06cc\u200c\u0627\u0646\u062f\u0627\u0632\u06cc\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">n8n \u06cc\u06a9 \u0627\u0628\u0632\u0627\u0631 \u0627\u062a\u0648\u0645\u0627\u0633\u06cc\u0648\u0646 \u0645\u062a\u0646\u200c\u0628\u0627\u0632 \u0627\u0633\u062a \u06a9\u0647 \u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627 \u0631\u0627 \u0628\u062f\u0648\u0646 \u06a9\u062f\u0646\u0648\u06cc\u0633\u06cc \u0628\u0647 \u0647\u0645 \u0648\u0635\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0646\u0633\u062e\u0647\u200c\u06cc \u0646\u0635\u0628\u200c\u0634\u062f\u0647 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0634\u062e\u0635\u06cc \u0645\u062d\u062f\u0648\u062f\u06cc\u062a \u0627\u062c\u0631\u0627 \u0646\u062f\u0627\u0631\u062f \u0648 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc\u062a\u0627\u0646 \u067e\u06cc\u0634 \u062e\u0648\u062f\u062a\u0627\u0646 \u0645\u06cc\u200c\u0645\u0627\u0646\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u06af\u0631 \u0647\u0646\u0648\u0632 \u0645\u0637\u0645\u0626\u0646 \u0646\u06cc\u0633\u062a\u06cc\u062f \u062f\u0627\u06a9\u0631 \u0628\u0631\u0627\u06cc \u0634\u0645\u0627 \u0645\u0646\u0627\u0633\u0628 \u0627\u0633\u062a\u060c \u0645\u0642\u0627\u0644\u0647\u200c\u06cc <a href=\"https:\/\/takcloud.com\/tutorial\/n8n-installation-methods\/\">\u0645\u0642\u0627\u06cc\u0633\u0647 \u0631\u0648\u0634\u200c\u0647\u0627\u06cc \u0646\u0635\u0628 n8n<\/a> \u0631\u0627 \u0628\u062e\u0648\u0627\u0646\u06cc\u062f.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u067e\u06cc\u0634\u200c\u0646\u06cc\u0627\u0632\u0647\u0627<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0633\u0631\u0648\u0631 \u0645\u062c\u0627\u0632\u06cc \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0627 \u0633\u06cc\u0633\u062a\u0645\u200c\u0639\u0627\u0645\u0644 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 (Ubuntu)\u060c \u062d\u062f\u0627\u0642\u0644 \u06f1 \u0647\u0633\u062a\u0647 \u0648 \u06f2 \u06af\u06cc\u06af \u0631\u0645<\/li>\n\n\n\n<li>\u062f\u0633\u062a\u0631\u0633\u06cc SSH \u0628\u0627 \u06a9\u0627\u0631\u0628\u0631 root<\/li>\n\n\n\n<li>\u06cc\u06a9 \u0633\u0627\u0628\u200c\u062f\u0627\u0645\u0646\u0647 \u0645\u062b\u0644 <code>n8n.example.com<\/code> \u06a9\u0647 \u0631\u06a9\u0648\u0631\u062f A \u0622\u0646 \u0628\u0647 IP \u0633\u0631\u0648\u0631 \u0627\u0634\u0627\u0631\u0647 \u06a9\u0646\u062f<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u062f\u0631 \u0647\u0645\u0647\u200c\u06cc \u062f\u0633\u062a\u0648\u0631\u0647\u0627\u060c <code>n8n.example.com<\/code> \u0631\u0627 \u0628\u0627 \u062f\u0627\u0645\u0646\u0647\u200c\u06cc \u062e\u0648\u062f\u062a\u0627\u0646 \u0639\u0648\u0636 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0645\u0631\u062d\u0644\u0647 \u06f1: \u0646\u0635\u0628 Docker<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -fsSL https:\/\/get.docker.com | sh<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u0627\u06af\u0631 \u0633\u0631\u0648\u0631\u062a\u0627\u0646 \u062f\u0631 \u0627\u06cc\u0631\u0627\u0646 \u0627\u0633\u062a \u0648 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u06cc\u0627 \u062f\u0627\u0646\u0644\u0648\u062f \u0627\u06cc\u0645\u06cc\u062c \u062e\u0637\u0627 \u062f\u0627\u062f\u060c \u0628\u0627\u06cc\u062f \u06cc\u06a9 Registry Mirror \u062f\u0627\u062e\u0644\u06cc \u0628\u0631\u0627\u06cc Docker \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u062f.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u0645\u0631\u062d\u0644\u0647 \u06f2: \u0627\u062c\u0631\u0627\u06cc n8n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0641\u0642\u0637 \u0647\u0645\u06cc\u0646 \u06cc\u06a9 \u062f\u0633\u062a\u0648\u0631:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker run -d --name n8n --restart unless-stopped \\\n  -p 127.0.0.1:5678:5678 \\\n  -e N8N_HOST=n8n.example.com \\\n  -e N8N_PROTOCOL=https \\\n  -e WEBHOOK_URL=https:\/\/n8n.example.com\/ \\\n  -e N8N_PROXY_HOPS=1 \\\n  -e GENERIC_TIMEZONE=Asia\/Tehran \\\n  -v n8n_data:\/home\/node\/.n8n \\\n  docker.n8n.io\/n8nio\/n8n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>-v n8n_data<\/code> \u0628\u0627\u0639\u062b \u0645\u06cc\u200c\u0634\u0648\u062f \u0648\u0631\u06a9\u200c\u0641\u0644\u0648\u0647\u0627 \u0648 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0628\u0627 \u0622\u067e\u062f\u06cc\u062a \u06cc\u0627 \u062d\u0630\u0641 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u067e\u0627\u06a9 \u0646\u0634\u0648\u0646\u062f.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0645\u0631\u062d\u0644\u0647 \u06f3: \u0646\u0635\u0628 Nginx \u0648 SSL<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install -y nginx certbot python3-certbot-nginx\nnano \/etc\/nginx\/sites-available\/n8n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u06cc\u0646 \u0631\u0627 \u062f\u0631 \u0641\u0627\u06cc\u0644 \u0628\u06af\u0630\u0627\u0631\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>server {\n    listen 80;\n    server_name n8n.example.com;\n\n    location \/ {\n        proxy_pass http:\/\/127.0.0.1:5678;\n        proxy_http_version 1.1;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection \"upgrade\";\n        proxy_set_header Host $host;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header X-Forwarded-Proto $scheme;\n    }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0641\u0639\u0627\u0644\u200c\u0633\u0627\u0632\u06cc \u0648 \u06af\u0631\u0641\u062a\u0646 \u06af\u0648\u0627\u0647\u06cc SSL (\u06af\u0632\u06cc\u0646\u0647\u200c\u06cc Redirect \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ln -s \/etc\/nginx\/sites-available\/n8n \/etc\/nginx\/sites-enabled\/\nnginx -t &amp;&amp; systemctl reload nginx\ncertbot --nginx -d n8n.example.com<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u062a\u0645\u062f\u06cc\u062f \u06af\u0648\u0627\u0647\u06cc \u062e\u0648\u062f\u06a9\u0627\u0631 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0645\u0631\u062d\u0644\u0647 \u06f4: \u0648\u0631\u0648\u062f \u0628\u0647 n8n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0622\u062f\u0631\u0633 <code>https:\/\/n8n.example.com<\/code> \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f\u060c \u0627\u06cc\u0645\u06cc\u0644 \u0648 \u0631\u0645\u0632 \u062d\u0633\u0627\u0628 \u0645\u062f\u06cc\u0631 \u0631\u0627 \u0628\u0633\u0627\u0632\u06cc\u062f \u0648 \u062a\u0645\u0627\u0645. \u0628\u0639\u062f \u0627\u0632 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647\u060c \u0635\u0641\u062d\u0647\u200c\u06cc \u062b\u0628\u062a\u200c\u0646\u0627\u0645 \u0628\u0633\u062a\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f \u0648 \u0641\u0642\u0637 \u0628\u0627 \u0644\u0627\u06af\u06cc\u0646 \u0645\u06cc\u200c\u0634\u0648\u062f \u0648\u0627\u0631\u062f \u0634\u062f.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0622\u067e\u062f\u06cc\u062a n8n<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>docker pull docker.n8n.io\/n8nio\/n8n\ndocker stop n8n &amp;&amp; docker rm n8n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0628\u0639\u062f \u0647\u0645\u0627\u0646 \u062f\u0633\u062a\u0648\u0631 \u0645\u0631\u062d\u0644\u0647 \u06f2 \u0631\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f. \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062f\u0631 volume \u0647\u0633\u062a\u0646\u062f \u0648 \u0627\u0632 \u0628\u06cc\u0646 \u0646\u0645\u06cc\u200c\u0631\u0648\u0646\u062f.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0645\u0634\u06a9\u0644\u0627\u062a \u0631\u0627\u06cc\u062c<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u062e\u0637\u0627\u06cc secure cookie:<\/strong> \u0628\u0627 http \u0648\u0627\u0631\u062f \u0634\u062f\u0647\u200c\u0627\u06cc\u062f\u061b \u0627\u0632 \u0622\u062f\u0631\u0633 https \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/li>\n\n\n\n<li><strong>\u0622\u062f\u0631\u0633 \u0648\u0628\u0647\u0648\u06a9\u200c\u0647\u0627 localhost \u0627\u0633\u062a:<\/strong> \u0645\u0642\u062f\u0627\u0631 <code>WEBHOOK_URL<\/code> \u0631\u0627 \u062f\u0631 \u062f\u0633\u062a\u0648\u0631 \u0645\u0631\u062d\u0644\u0647 \u06f2 \u0686\u06a9 \u06a9\u0646\u06cc\u062f.<\/li>\n\n\n\n<li><strong>\u0627\u062f\u06cc\u062a\u0648\u0631 \u0645\u062f\u0627\u0645 Connection lost \u0645\u06cc\u200c\u062f\u0647\u062f:<\/strong> \u062e\u0637\u0648\u0637 <code>Upgrade<\/code> \u0648 <code>Connection<\/code> \u062f\u0631 \u06a9\u0627\u0646\u0641\u06cc\u06af Nginx \u062c\u0627 \u0627\u0641\u062a\u0627\u062f\u0647\u200c\u0627\u0646\u062f.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0628\u0631\u0627\u06cc \u062f\u06cc\u062f\u0646 \u062e\u0637\u0627\u0647\u0627: <code>docker logs n8n --tail 50<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u062c\u0645\u0639\u200c\u0628\u0646\u062f\u06cc<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u062d\u0627\u0644\u0627 n8n \u0631\u0648\u06cc \u062f\u0627\u0645\u0646\u0647\u200c\u06cc \u062e\u0648\u062f\u062a\u0627\u0646 \u0628\u0627 HTTPS \u0622\u0645\u0627\u062f\u0647 \u0627\u0633\u062a \u0648 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0648\u0644\u06cc\u0646 \u0648\u0631\u06a9\u200c\u0641\u0644\u0648 \u0631\u0627 \u0628\u0633\u0627\u0632\u06cc\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0627\u06af\u0631 \u062d\u0648\u0635\u0644\u0647\u200c\u06cc \u0646\u0635\u0628 \u0646\u062f\u0627\u0631\u06cc\u062f\u060c <a href=\"https:\/\/takcloud.com\/store\/n8n-vps\">\u0633\u0631\u0648\u0631 \u0645\u062c\u0627\u0632\u06cc n8n \u062a\u06a9\u200c\u06a9\u0644\u0648\u062f<\/a> \u0628\u0627 n8n \u0622\u0645\u0627\u062f\u0647\u060c \u0633\u0627\u0628\u200c\u062f\u0627\u0645\u0646\u0647 \u0648 SSL \u062a\u062d\u0648\u06cc\u0644 \u062f\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0646\u0635\u0628 n8n \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0645\u062c\u0627\u0632\u06cc Ubuntu \u062f\u0631 \u06f4 \u0645\u0631\u062d\u0644\u0647: \u0646\u0635\u0628 Docker\u060c \u0627\u062c\u0631\u0627\u06cc n8n \u0628\u0627 \u06cc\u06a9 \u062f\u0633\u062a\u0648\u0631\u060c \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc Nginx \u0648 SSL \u0631\u0627\u06cc\u06af\u0627\u0646 Let&#8217;s Encrypt.<\/p>\n","protected":false},"author":2,"featured_media":5955,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[],"class_list":["post-5952","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-n8n"],"_links":{"self":[{"href":"https:\/\/takcloud.com\/tutorial\/wp-json\/wp\/v2\/posts\/5952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/takcloud.com\/tutorial\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/takcloud.com\/tutorial\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/takcloud.com\/tutorial\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/takcloud.com\/tutorial\/wp-json\/wp\/v2\/comments?post=5952"}],"version-history":[{"count":4,"href":"https:\/\/takcloud.com\/tutorial\/wp-json\/wp\/v2\/posts\/5952\/revisions"}],"predecessor-version":[{"id":5961,"href":"https:\/\/takcloud.com\/tutorial\/wp-json\/wp\/v2\/posts\/5952\/revisions\/5961"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/takcloud.com\/tutorial\/wp-json\/wp\/v2\/media\/5955"}],"wp:attachment":[{"href":"https:\/\/takcloud.com\/tutorial\/wp-json\/wp\/v2\/media?parent=5952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/takcloud.com\/tutorial\/wp-json\/wp\/v2\/categories?post=5952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/takcloud.com\/tutorial\/wp-json\/wp\/v2\/tags?post=5952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}