{"id":130666,"date":"2026-10-14T15:40:04","date_gmt":"2026-10-14T08:40:04","guid":{"rendered":"https:\/\/tino.vn\/blog\/?p=130666"},"modified":"2026-10-14T15:44:05","modified_gmt":"2026-10-14T08:44:05","slug":"chay-nhieu-instance-n8n-tren-cung-1-vps","status":"publish","type":"post","link":"https:\/\/tino.vn\/blog\/chay-nhieu-instance-n8n-tren-cung-1-vps\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn c\u00e1ch ch\u1ea1y nhi\u1ec1u instance n8n tr\u00ean c\u00f9ng 1 VPS\u00a0"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>B\u1ea1n c\u00f3 th\u1ec3 ch\u1ea1y nhi\u1ec1u instance n8n tr\u00ean c\u00f9ng 1 VPS b\u1eb1ng c\u00e1ch t\u1ea1o c\u00e1c Docker container \u0111\u1ed9c l\u1eadp, k\u1ebft h\u1ee3p Docker Compose v\u00e0 Reverse Proxy \u0111\u1ec3 qu\u1ea3n l\u00fd t\u00ean mi\u1ec1n, HTTPS cho t\u1eebng h\u1ec7 th\u1ed1ng. M\u1ed7i instance s\u1ebd c\u00f3 giao di\u1ec7n qu\u1ea3n tr\u1ecb, workflow, t\u00e0i kho\u1ea3n v\u00e0 d\u1eef li\u1ec7u ri\u00eang. Gi\u1ea3i ph\u00e1p n\u00e0y ph\u00f9 h\u1ee3p khi c\u1ea7n v\u1eadn h\u00e0nh nhi\u1ec1u h\u1ec7 th\u1ed1ng t\u1ef1 \u0111\u1ed9ng h\u00f3a cho c\u00e1c d\u1ef1 \u00e1n, ph\u00f2ng ban ho\u1eb7c m\u00f4i tr\u01b0\u1eddng th\u1eed nghi\u1ec7m m\u00e0 kh\u00f4ng mu\u1ed1n thu\u00ea th\u00eam VPS. D\u01b0\u1edbi \u0111\u00e2y l\u00e0 h\u01b0\u1edbng d\u1eabn tri\u1ec3n khai hai chi ti\u1ebft.<\/strong><\/p>\n\n\n\n<h2 id=\"C\u00f3_th\u1ec3_ch\u1ea1y_nhi\u1ec1u_instance_n8n_tr\u00ean_c\u00f9ng_m\u1ed9t_VPS_kh\u00f4ng?\"><strong>C\u00f3 th\u1ec3 ch\u1ea1y nhi\u1ec1u instance n8n tr\u00ean c\u00f9ng m\u1ed9t VPS kh\u00f4ng?<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Ho\u00e0n to\u00e0n \u0111\u01b0\u1ee3c.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Instance l\u00e0 m\u1ed9t b\u1ea3n n8n ch\u1ea1y \u0111\u1ed9c l\u1eadp, c\u00f3 t\u00e0i kho\u1ea3n qu\u1ea3n tr\u1ecb, workflow, credentials (th\u00f4ng tin \u0111\u0103ng nh\u1eadp d\u1ecbch v\u1ee5 b\u00ean ngo\u00e0i) v\u00e0 l\u1ecbch s\u1eed th\u1ef1c thi ri\u00eang. M\u1ed7i b\u1ea3n n8n ch\u1ec9 c\u1ea7n kh\u00f4ng tr\u00f9ng 3 th\u1ee9: c\u1ed5ng l\u1eafng nghe, n\u01a1i l\u01b0u d\u1eef li\u1ec7u v\u00e0 \u0111\u1ecba ch\u1ec9 truy c\u1eadp. Khi ba y\u1ebfu t\u1ed1 n\u00e0y \u0111\u01b0\u1ee3c t\u00e1ch ri\u00eang, c\u00e1c instance ho\u1ea1t \u0111\u1ed9ng \u0111\u1ed9c l\u1eadp tr\u00ean c\u00f9ng m\u1ed9t m\u00e1y ch\u1ee7.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Docker gi\u1ea3i quy\u1ebft g\u1ecdn c\u1ea3 ba \u0111i\u1ec1u ki\u1ec7n tr\u00ean: m\u1ed7i container c\u00f3 m\u1ea1ng ri\u00eang n\u00ean t\u1ea5t c\u1ea3 c\u00f9ng d\u00f9ng c\u1ed5ng m\u1eb7c \u0111\u1ecbnh 5678 b\u00ean trong m\u00e0 kh\u00f4ng xung \u0111\u1ed9t, m\u1ed7i container g\u1eafn m\u1ed9t volume d\u1eef li\u1ec7u ri\u00eang, c\u00f2n reverse proxy \u0111\u1ecbnh tuy\u1ebfn theo t\u00ean mi\u1ec1n.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/chay-nhieu-instance-n8n-tren-cung-1-vps-1.png\" alt=\"C\u00f3 th\u1ec3 ch\u1ea1y nhi\u1ec1u instance n8n tr\u00ean c\u00f9ng m\u1ed9t VPS kh\u00f4ng?\" class=\"wp-image-130696\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/chay-nhieu-instance-n8n-tren-cung-1-vps-1.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/chay-nhieu-instance-n8n-tren-cung-1-vps-1-300x161.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u00f3 th\u1ec3 ch\u1ea1y nhi\u1ec1u instance n8n tr\u00ean c\u00f9ng m\u1ed9t VPS kh\u00f4ng?<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">V\u00ed d\u1ee5, b\u1ea1n c\u00f3 th\u1ec3 tri\u1ec3n khai hai instance tr\u00ean c\u00f9ng VPS nh\u01b0 sau:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Th\u00e0nh ph\u1ea7n<\/strong><\/td><td><strong>Instance n8n th\u1ee9 nh\u1ea5t<\/strong><\/td><td><strong>Instance n8n th\u1ee9 hai<\/strong><\/td><\/tr><tr><td>T\u00ean mi\u1ec1n<\/td><td>n8n1.example.com<\/td><td>n8n2.example.com<\/td><\/tr><tr><td>Docker container<\/td><td>n8n-one<\/td><td>n8n-two<\/td><\/tr><tr><td>C\u1ed5ng n\u1ed9i b\u1ed9<\/td><td>5678<\/td><td>5678<\/td><\/tr><tr><td>D\u1eef li\u1ec7u<\/td><td>n8n_one_data<\/td><td>n8n_two_data<\/td><\/tr><tr><td>T\u00e0i kho\u1ea3n qu\u1ea3n tr\u1ecb<\/td><td>Ri\u00eang<\/td><td>Ri\u00eang<\/td><\/tr><tr><td>Workflow v\u00e0 Credentials<\/td><td>\u0110\u1ed9c l\u1eadp<\/td><td>\u0110\u1ed9c l\u1eadp<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Ngo\u00e0i ra, \u0111\u1ec3 ch\u1ea1y nhi\u1ec1u instance n8n, VPS c\u0169ng c\u1ea7n \u0111\u00e1p \u1ee9ng \u0111\u1ee7 t\u00e0i nguy\u00ean RAM v\u00e0 CPU.<\/p>\n\n\n\n<h2 id=\"H\u01b0\u1edbng_d\u1eabn_ch\u1ea1y_nhi\u1ec1u_instance_n8n_tr\u00ean_c\u00f9ng_1_VPS&nbsp;\"><strong>H\u01b0\u1edbng d\u1eabn ch\u1ea1y nhi\u1ec1u instance n8n tr\u00ean c\u00f9ng 1 VPS&nbsp;<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0110\u1ec3 ch\u1ea1y 2 instance n8n tr\u00ean c\u00f9ng m\u1ed9t VPS ch\u01b0a c\u00e0i \u0111\u1eb7t g\u00ec, b\u1ea1n ch\u1ec9 c\u1ea7n c\u00e0i Docker, Docker Compose, t\u1ea1o hai container n8n c\u00f3 d\u1eef li\u1ec7u ri\u00eang v\u00e0 s\u1eed d\u1ee5ng <a href=\"https:\/\/caddyserver.com\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/caddyserver.com\/\" rel=\"noreferrer noopener nofollow\">Caddy <\/a>\u0111\u1ec3 c\u1ea5u h\u00ecnh t\u00ean mi\u1ec1n HTTPS cho t\u1eebng instance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">H\u01b0\u1edbng d\u1eabn d\u01b0\u1edbi \u0111\u00e2y d\u00e0nh cho ng\u01b0\u1eddi m\u1edbi, b\u1eaft \u0111\u1ea7u t\u1eeb VPS Ubuntu ho\u00e0n to\u00e0n tr\u1ed1ng, ch\u01b0a c\u00f3 Nano, Docker hay n8n. T\u1eebng b\u01b0\u1edbc \u0111\u1ec1u c\u00f3 c\u00e2u l\u1ec7nh c\u1ee5 th\u1ec3, c\u00e1ch th\u1ef1c hi\u1ec7n v\u00e0 ki\u1ec3m tra k\u1ebft qu\u1ea3.<\/p>\n\n\n\n<h3 id=\"M\u00f4_h\u00ecnh_tri\u1ec3n_khai\"><strong>M\u00f4 h\u00ecnh tri\u1ec3n khai<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Sau khi ho\u00e0n th\u00e0nh, VPS s\u1ebd ch\u1ea1y ba container:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"954\" height=\"566\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_14-2.png\" alt=\"\n\" class=\"wp-image-130693\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_14-2.png 954w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_14-2-300x178.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_14-2-768x456.png 768w\" sizes=\"(max-width: 954px) 100vw, 954px\" \/><figcaption class=\"wp-element-caption\"><strong>M\u00f4 h\u00ecnh tri\u1ec3n khai<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Hai instance s\u1ebd c\u00f3 t\u00e0i kho\u1ea3n qu\u1ea3n tr\u1ecb, workflow, credentials v\u00e0 d\u1eef li\u1ec7u ri\u00eang. M\u1eb7c d\u00f9 c\u00f9ng s\u1eed d\u1ee5ng c\u1ed5ng 5678 b\u00ean trong Docker, c\u1ea3 hai kh\u00f4ng xung \u0111\u1ed9t v\u00ec kh\u00f4ng c\u00f4ng khai c\u1ed5ng n\u00e0y tr\u1ef1c ti\u1ebfp tr\u00ean VPS.<\/p>\n\n\n\n<h3 id=\"Chu\u1ea9n_b\u1ecb_tr\u01b0\u1edbc_khi_th\u1ef1c_hi\u1ec7n\"><strong>Chu\u1ea9n b\u1ecb tr\u01b0\u1edbc khi th\u1ef1c hi\u1ec7n<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Th\u00e0nh ph\u1ea7n<\/strong><\/td><td><strong>Y\u00eau c\u1ea7u<\/strong><\/td><\/tr><tr><td>VPS<\/td><td>Ubuntu Server 24.04 LTS (v\u00ed d\u1ee5 h\u01b0\u1edbng d\u1eabn)<\/td><\/tr><tr><td>CPU<\/td><td>Khuy\u1ebfn ngh\u1ecb t\u1eeb 2 vCPU cho th\u1eed nghi\u1ec7m nh\u1eb9<\/td><\/tr><tr><td>RAM<\/td><td>Khuy\u1ebfn ngh\u1ecb t\u1eeb 4 GB cho 2 instance<\/td><\/tr><tr><td>Quy\u1ec1n truy c\u1eadp<\/td><td>SSH v\u1edbi t\u00e0i kho\u1ea3n root ho\u1eb7c t\u00e0i kho\u1ea3n c\u00f3 sudo<\/td><\/tr><tr><td>T\u00ean mi\u1ec1n<\/td><td>M\u1ed9t t\u00ean mi\u1ec1n c\u00f3 quy\u1ec1n qu\u1ea3n l\u00fd DNS<\/td><\/tr><tr><td>Ph\u1ea7n m\u1ec1m tr\u00ean Windows<\/td><td>Xshell ho\u1eb7c \u1ee9ng d\u1ee5ng SSH t\u01b0\u01a1ng \u0111\u01b0\u01a1ng<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">C\u1ea5u h\u00ecnh CPU v\u00e0 RAM tr\u00ean l\u00e0 m\u1ee9c khuy\u1ebfn ngh\u1ecb tham kh\u1ea3o cho th\u1eed nghi\u1ec7m, kh\u00f4ng ph\u1ea3i y\u00eau c\u1ea7u t\u1ed1i thi\u1ec3u ch\u00ednh th\u1ee9c. M\u1ee9c s\u1eed d\u1ee5ng th\u1ef1c t\u1ebf ph\u1ee5 thu\u1ed9c v\u00e0o workflow.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Trong v\u00ed d\u1ee5, ch\u00fang ta d\u00f9ng:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>n8n1.example.com<\/strong> <strong>(n8n1.tunghuynhwiki.com)<\/strong> \u2013 n8n th\u1ee9 nh\u1ea5t <\/li>\n\n\n\n<li><strong>n8n2.example.com<\/strong> <strong>(n8n2.tunghuynhwiki.com)<\/strong> \u2013 n8n th\u1ee9 hai.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">C\u1ea3 hai subdomain s\u1ebd tr\u1ecf \u0111\u1ebfn c\u00f9ng m\u1ed9t IP c\u1ee7a VPS. B\u1ea1n c\u1ea7n thay <strong>example.com<\/strong> b\u1eb1ng t\u00ean mi\u1ec1n th\u1ef1c t\u1ebf.<\/p>\n\n\n\n<h3 id=\"B\u01b0\u1edbc_1._\u0110\u0103ng_nh\u1eadp_VPS_b\u1eb1ng_Xshell_(ho\u1eb7c_m\u1ed9t_c\u00f4ng_c\u1ee5_SSH_t\u01b0\u01a1ng_t\u1ef1)\"><strong>B\u01b0\u1edbc 1. \u0110\u0103ng nh\u1eadp VPS b\u1eb1ng Xshell (ho\u1eb7c m\u1ed9t c\u00f4ng c\u1ee5 SSH t\u01b0\u01a1ng t\u1ef1)<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Sau khi SSH v\u00e0o VPS, ki\u1ec3m tra h\u1ec7 \u0111i\u1ec1u h\u00e0nh b\u1eb1ng l\u1ec7nh:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/etc\/os-release<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">K\u1ebft qu\u1ea3 c\u1ea7n cho th\u1ea5y VPS \u0111ang s\u1eed d\u1ee5ng Ubuntu. N\u1ebfu VPS ch\u1ea1y Debian, AlmaLinux ho\u1eb7c h\u1ec7 \u0111i\u1ec1u h\u00e0nh kh\u00e1c, kh\u00f4ng s\u1eed d\u1ee5ng nguy\u00ean xi c\u00e1c l\u1ec7nh c\u00e0i Docker b\u00ean d\u01b0\u1edbi.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"904\" height=\"380\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_1-7.png\" alt=\"Ki\u1ec3m tra h\u1ec7 \u0111i\u1ec1u h\u00e0nh\" class=\"wp-image-130669\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_1-7.png 904w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_1-7-300x126.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_1-7-768x323.png 768w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><figcaption class=\"wp-element-caption\"><strong>Ki\u1ec3m tra h\u1ec7 \u0111i\u1ec1u h\u00e0nh<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h3 id=\"B\u01b0\u1edbc_2._C\u1eadp_nh\u1eadt_VPS_v\u00e0_c\u00e0i_\u0111\u1eb7t_Nano\"><strong>B\u01b0\u1edbc 2. C\u1eadp nh\u1eadt VPS v\u00e0 c\u00e0i \u0111\u1eb7t Nano<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0110\u1ec3 c\u00e0i \u0111\u1eb7t tr\u00ecnh so\u1ea1n th\u1ea3o Nano, ch\u1ea1y:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\n\nsudo apt install -y nano curl ca-certificates<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ki\u1ec3m tra Nano \u0111\u00e3 \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano --version<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"277\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_2-7-1024x277.png\" alt=\"C\u1eadp nh\u1eadt VPS v\u00e0 c\u00e0i \u0111\u1eb7t Nano\" class=\"wp-image-130673\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_2-7-1024x277.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_2-7-300x81.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_2-7-768x208.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_2-7-1536x416.png 1536w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_2-7.png 1606w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u1eadp nh\u1eadt VPS v\u00e0 c\u00e0i \u0111\u1eb7t Nano<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">C\u00e1ch s\u1eed d\u1ee5ng Nano c\u01a1 b\u1ea3n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Thao t\u00e1c<\/strong><\/td><td><strong>Ph\u00edm b\u1ea5m<\/strong><\/td><\/tr><tr><td>M\u1edf file<\/td><td><code>nano tenfile<\/code><\/td><\/tr><tr><td>L\u01b0u file<\/td><td><strong>Ctrl + O<\/strong>, sau \u0111\u00f3 <strong>Enter<\/strong><\/td><\/tr><tr><td>Tho\u00e1t Nano<\/td><td><strong>Ctrl + X<\/strong><\/td><\/tr><tr><td>T\u00ecm ki\u1ebfm v\u0103n b\u1ea3n<\/td><td><strong>Ctrl + W<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Khi s\u1eed d\u1ee5ng Xshell, b\u1ea1n c\u00f3 th\u1ec3 d\u00e1n n\u1ed9i dung b\u1eb1ng l\u1ec7nh Paste c\u1ee7a Xshell ho\u1eb7c nh\u1ea5p chu\u1ed9t ph\u1ea3i n\u1ebfu \u0111\u00e3 c\u1ea5u h\u00ecnh chu\u1ed9t ph\u1ea3i \u0111\u1ec3 d\u00e1n.<\/p>\n\n\n\n<h3 id=\"B\u01b0\u1edbc_3._C\u00e0i_\u0111\u1eb7t_Docker_v\u00e0_Docker_Compose\"><strong>B\u01b0\u1edbc 3. C\u00e0i \u0111\u1eb7t Docker v\u00e0 Docker Compose<\/strong><\/h3>\n\n\n\n<h4 id=\"3.1._Th\u00eam_kh\u00f3a_x\u00e1c_th\u1ef1c_Docker\"><strong>3.1. Th\u00eam kh\u00f3a x\u00e1c th\u1ef1c Docker<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ch\u1ea1y l\u1ea7n l\u01b0\u1ee3t c\u00e1c l\u1ec7nh sau:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo install -m 0755 -d \/etc\/apt\/keyrings<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo curl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg -o \/etc\/apt\/keyrings\/docker.asc<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chmod a+r \/etc\/apt\/keyrings\/docker.asc<\/code><\/pre>\n\n\n\n<h4 id=\"3.2._Th\u00eam_kho_ph\u1ea7n_m\u1ec1m_Docker_ch\u00ednh_th\u1ee9c\"><strong>3.2. Th\u00eam kho ph\u1ea7n m\u1ec1m Docker ch\u00ednh th\u1ee9c<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sao ch\u00e9p v\u00e0 d\u00e1n to\u00e0n b\u1ed9 kh\u1ed1i l\u1ec7nh sau v\u00e0o Terminal:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo tee \/etc\/apt\/sources.list.d\/docker.sources &gt; \/dev\/null &lt;&lt;EOF\nTypes: deb\nURIs: https:\/\/download.docker.com\/linux\/ubuntu\nSuites: $(. \/etc\/os-release &amp;&amp; echo \"${UBUNTU_CODENAME:-$VERSION_CODENAME}\")\nComponents: stable\nArchitectures: $(dpkg --print-architecture)\nSigned-By: \/etc\/apt\/keyrings\/docker.asc\nEOF<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0110\u00e2y l\u00e0 ph\u01b0\u01a1ng ph\u00e1p c\u00e0i \u0111\u1eb7t qua kho APT ch\u00ednh th\u1ee9c c\u1ee7a Docker d\u00e0nh cho Ubuntu.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"862\" height=\"254\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_3-6.png\" alt=\"Th\u00eam kho ph\u1ea7n m\u1ec1m Docker ch\u00ednh th\u1ee9c\" class=\"wp-image-130677\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_3-6.png 862w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_3-6-300x88.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_3-6-768x226.png 768w\" sizes=\"(max-width: 862px) 100vw, 862px\" \/><figcaption class=\"wp-element-caption\"><strong>Th\u00eam kho ph\u1ea7n m\u1ec1m Docker ch\u00ednh th\u1ee9c<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h4 id=\"3.3._C\u00e0i_\u0111\u1eb7t_Docker_v\u00e0_Compose\"><strong>3.3. C\u00e0i \u0111\u1eb7t Docker v\u00e0 Compose<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">C\u1eadp nh\u1eadt danh s\u00e1ch ph\u1ea7n m\u1ec1m:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Sau \u0111\u00f3 c\u00e0i c\u00e1c th\u00e0nh ph\u1ea7n:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">K\u00edch ho\u1ea1t Docker v\u00e0 cho ph\u00e9p t\u1ef1 kh\u1edfi \u0111\u1ed9ng c\u00f9ng h\u1ec7 th\u1ed1ng:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl enable --now docker<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"562\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_4-6-1024x562.png\" alt=\"C\u00e0i \u0111\u1eb7t Docker v\u00e0 Compose\" class=\"wp-image-130680\" style=\"aspect-ratio:30.38232795242141;width:608px;height:auto\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_4-6-1024x562.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_4-6-300x165.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_4-6-768x421.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_4-6.png 1371w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u00e0i \u0111\u1eb7t Docker v\u00e0 Compose<\/strong><br><\/figcaption><\/figure>\n<\/div>\n\n\n<h4 id=\"3.4._Ki\u1ec3m_tra_k\u1ebft_qu\u1ea3_c\u00e0i_\u0111\u1eb7t\"><strong>3.4. Ki\u1ec3m tra k\u1ebft qu\u1ea3 c\u00e0i \u0111\u1eb7t<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ki\u1ec3m tra Docker:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker --version<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ki\u1ec3m tra Docker Compose:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker compose version<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Cu\u1ed1i c\u00f9ng, ch\u1ea1y m\u1ed9t container th\u1eed nghi\u1ec7m:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker run --rm hello-world<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">N\u1ebfu Terminal hi\u1ec3n th\u1ecb d\u00f2ng: <strong>Hello from Docker!<\/strong> Docker \u0111\u00e3 ho\u1ea1t \u0111\u1ed9ng v\u00e0 c\u00f3 th\u1ec3 ti\u1ebfp t\u1ee5c c\u00e0i \u0111\u1eb7t n8n.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"645\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_5-7-1024x645.png\" alt=\"Ki\u1ec3m tra k\u1ebft qu\u1ea3 c\u00e0i \u0111\u1eb7t\" class=\"wp-image-130682\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_5-7-1024x645.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_5-7-300x189.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_5-7-768x484.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_5-7.png 1043w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>Ki\u1ec3m tra k\u1ebft qu\u1ea3 c\u00e0i \u0111\u1eb7t<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Trong c\u00e1c b\u01b0\u1edbc b\u00ean d\u01b0\u1edbi, ch\u00fang ta s\u1eed d\u1ee5ng sudo docker \u0111\u1ec3 t\u01b0\u01a1ng th\u00edch v\u1edbi t\u00e0i kho\u1ea3n ch\u01b0a \u0111\u01b0\u1ee3c c\u1ea5p quy\u1ec1n Docker tr\u1ef1c ti\u1ebfp.<\/p>\n\n\n\n<h3 id=\"B\u01b0\u1edbc_4._C\u1ea5u_h\u00ecnh_2_subdomain_tr\u1ecf_v\u1ec1_VPS\"><strong>B\u01b0\u1edbc 4. C\u1ea5u h\u00ecnh 2 subdomain tr\u1ecf v\u1ec1 VPS<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Tr\u01b0\u1edbc khi c\u00e0i n8n, b\u1ea1n c\u1ea7n t\u1ea1o hai subdomain v\u00e0 tr\u1ecf v\u1ec1 c\u00f9ng \u0111\u1ecba ch\u1ec9 IP c\u1ee7a VPS.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0110\u1ec3 ki\u1ec3m tra DNS, tr\u00ean Windows, m\u1edf Command Prompt (CMD) v\u00e0 ch\u1ea1y:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nslookup n8n1.example.com<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>nslookup n8n2.example.com<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Thay<strong> example.com<\/strong> b\u1eb1ng t\u00ean mi\u1ec1n th\u1ef1c t\u1ebf. K\u1ebft qu\u1ea3 c\u1ea7n tr\u1ea3 v\u1ec1 \u0111\u1ecba ch\u1ec9 IP c\u1ee7a VPS. N\u1ebfu ch\u01b0a \u0111\u00fang, h\u00e3y ki\u1ec3m tra b\u1ea3n ghi DNS v\u00e0 ch\u1edd h\u1ec7 th\u1ed1ng c\u1eadp nh\u1eadt.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"590\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/1-4-1024x590.png\" alt=\"Ki\u1ec3m tra 2 subdomain tr\u1ecf v\u1ec1 VPS\" class=\"wp-image-130683\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/1-4-1024x590.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/1-4-300x173.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/1-4-768x442.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/1-4.png 1052w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>Ki\u1ec3m tra 2 subdomain tr\u1ecf v\u1ec1 VPS<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h3 id=\"B\u01b0\u1edbc_5._Ki\u1ec3m_tra_firewall_c\u1ee7a_VPS\"><strong>B\u01b0\u1edbc 5. Ki\u1ec3m tra firewall c\u1ee7a VPS<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Caddy c\u1ea7n c\u1ed5ng 80 (HTTP) v\u00e0 443 (HTTPS) \u0111\u1ec3 ph\u1ee5c v\u1ee5 hai instance n8n.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">N\u1ebfu VPS s\u1eed d\u1ee5ng UFW, ki\u1ec3m tra b\u1eb1ng:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ufw status<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">N\u1ebfu UFW \u0111ang ho\u1ea1t \u0111\u1ed9ng, cho ph\u00e9p hai c\u1ed5ng:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ufw allow 80\/tcp\n\nsudo ufw allow 443\/tcp<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ki\u1ec3m tra l\u1ea1i:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ufw status<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"637\" height=\"205\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_6-7.png\" alt=\"Ki\u1ec3m tra firewall c\u1ee7a VPS\" class=\"wp-image-130684\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_6-7.png 637w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_6-7-300x97.png 300w\" sizes=\"(max-width: 637px) 100vw, 637px\" \/><figcaption class=\"wp-element-caption\"><strong>Ki\u1ec3m tra firewall c\u1ee7a VPS<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">N\u1ebfu nh\u1eadn th\u00f4ng b\u00e1o <strong>ufw: command not found<\/strong>, b\u1ea1n c\u00f3 th\u1ec3 c\u00e0i UFW b\u1eb1ng l\u1ec7nh <strong><code>sudo apt install -y ufw<\/code><\/strong>. N\u1ebfu UFW \u0111ang \u1edf tr\u1ea1ng th\u00e1i inactive, c\u00e1c quy t\u1eafc UFW ch\u01b0a \u0111\u01b0\u1ee3c \u00e1p d\u1ee5ng. Kh\u00f4ng c\u1ea7n b\u1eadt UFW ch\u1ec9 \u0111\u1ec3 th\u1ef1c hi\u1ec7n h\u01b0\u1edbng d\u1eabn n\u00e0y.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>L\u01b0u \u00fd:<\/strong> N\u1ebfu nh\u00e0 cung c\u1ea5p VPS c\u00f3 firewall ri\u00eang, b\u1ea1n c\u0169ng c\u1ea7n cho ph\u00e9p TCP 80 v\u00e0 443 t\u1ea1i trang qu\u1ea3n tr\u1ecb. Lu\u00f4n gi\u1eef c\u1ed5ng SSH \u0111ang s\u1eed d\u1ee5ng \u0111\u01b0\u1ee3c ph\u00e9p truy c\u1eadp \u0111\u1ec3 tr\u00e1nh m\u1ea5t k\u1ebft n\u1ed1i Xshell.<\/p>\n\n\n\n<h3 id=\"B\u01b0\u1edbc_6._T\u1ea1o_th\u01b0_m\u1ee5c_v\u00e0_file_Docker_Compose_cho_2_instance\"><strong>B\u01b0\u1edbc 6. T\u1ea1o th\u01b0 m\u1ee5c v\u00e0 file Docker Compose cho 2 instance<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0110\u00e2y l\u00e0 b\u01b0\u1edbc quan tr\u1ecdng nh\u1ea5t, quy\u1ebft \u0111\u1ecbnh c\u00e1ch hai instance n8n ho\u1ea1t \u0111\u1ed9ng tr\u00ean c\u00f9ng VPS.<\/p>\n\n\n\n<h4 id=\"6.1._T\u1ea1o_th\u01b0_m\u1ee5c_l\u01b0u_tr\u1eef\"><strong>6.1. T\u1ea1o th\u01b0 m\u1ee5c l\u01b0u tr\u1eef<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Tr\u00ean Terminal VPS, ch\u1ea1y:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p ~\/n8n-multi<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Di chuy\u1ec3n v\u00e0o th\u01b0 m\u1ee5c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd ~\/n8n-multi<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"282\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_7-6-1024x282.png\" alt=\"T\u1ea1o th\u01b0 m\u1ee5c l\u01b0u tr\u1eef\" class=\"wp-image-130685\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_7-6-1024x282.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_7-6-300x83.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_7-6-768x212.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_7-6.png 1053w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>T\u1ea1o th\u01b0 m\u1ee5c l\u01b0u tr\u1eef<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h4 id=\"6.2._T\u1ea1o_file_Docker_Compose\"><strong>6.2. T\u1ea1o file Docker Compose<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Nh\u1eadp l\u1ec7nh:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano compose.yaml<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Nano s\u1ebd m\u1edf m\u1ed9t file m\u1edbi. Sao ch\u00e9p to\u00e0n b\u1ed9 c\u1ea5u h\u00ecnh d\u01b0\u1edbi \u0111\u00e2y v\u00e0 d\u00e1n v\u00e0o:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>services:\n  n8n-one:\n    image: docker.n8n.io\/n8nio\/n8n:2.43.4\n    restart: unless-stopped\n    environment:\n      - N8N_HOST=n8n1.example.com\n      - N8N_PORT=5678\n      - N8N_PROTOCOL=https\n      - N8N_EDITOR_BASE_URL=https:\/\/n8n1.example.com\/\n      - WEBHOOK_URL=https:\/\/n8n1.example.com\/\n      - N8N_PROXY_HOPS=1\n      - NODE_ENV=production\n      - GENERIC_TIMEZONE=Asia\/Ho_Chi_Minh\n      - TZ=Asia\/Ho_Chi_Minh\n      - N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true\n    volumes:\n      - n8n_one_data:\/home\/node\/.n8n\n\n  n8n-two:\n    image: docker.n8n.io\/n8nio\/n8n:2.43.4\n    restart: unless-stopped\n    environment:\n      - N8N_HOST=n8n2.example.com\n      - N8N_PORT=5678\n      - N8N_PROTOCOL=https\n      - N8N_EDITOR_BASE_URL=https:\/\/n8n2.example.com\/\n      - WEBHOOK_URL=https:\/\/n8n2.example.com\/\n      - N8N_PROXY_HOPS=1\n      - NODE_ENV=production\n      - GENERIC_TIMEZONE=Asia\/Ho_Chi_Minh\n      - TZ=Asia\/Ho_Chi_Minh\n      - N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true\n    volumes:\n      - n8n_two_data:\/home\/node\/.n8n\n\n  caddy:\n    image: caddy:2\n    restart: unless-stopped\n    ports:\n      - \"80:80\"\n      - \"443:443\"\n    volumes:\n      - .\/Caddyfile:\/etc\/caddy\/Caddyfile:ro\n      - caddy_data:\/data\n      - caddy_config:\/config\n    depends_on:\n      - n8n-one\n      - n8n-two\n\nvolumes:\n  n8n_one_data:\n  n8n_two_data:\n  caddy_data:\n  caddy_config:<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Trong c\u1ea5u h\u00ecnh tr\u00ean, b\u1ea1n c\u1ea7n thay th\u1ebf:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>n8n1.example.com<\/strong> b\u1eb1ng subdomain th\u1ee9 nh\u1ea5t.<\/li>\n\n\n\n<li><strong>n8n2.example.com<\/strong> b\u1eb1ng subdomain th\u1ee9 hai.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"653\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_8-5-1024x653.png\" alt=\"T\u1ea1o file Docker Compose\" class=\"wp-image-130686\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_8-5-1024x653.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_8-5-300x191.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_8-5-768x490.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_8-5.png 1130w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>T\u1ea1o file Docker Compose<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Gi\u1eef nguy\u00ean c\u00e1c th\u00e0nh ph\u1ea7n c\u00f2n l\u1ea1i n\u1ebfu b\u1ea1n s\u1eed d\u1ee5ng \u0111\u00fang m\u00f4 h\u00ecnh h\u01b0\u1edbng d\u1eabn.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Gi\u1ea3i th\u00edch nhanh:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Th\u00e0nh ph\u1ea7n<\/strong><\/td><td><strong>Ch\u1ee9c n\u0103ng<\/strong><\/td><\/tr><tr><td>n8n-one<\/td><td>Container n8n th\u1ee9 nh\u1ea5t<\/td><\/tr><tr><td>n8n-two<\/td><td>Container n8n th\u1ee9 hai<\/td><\/tr><tr><td>n8n_one_data<\/td><td>L\u01b0u database v\u00e0 d\u1eef li\u1ec7u instance 1<\/td><\/tr><tr><td>n8n_two_data<\/td><td>L\u01b0u database v\u00e0 d\u1eef li\u1ec7u instance 2<\/td><\/tr><tr><td>N8N_WEBHOOK_URL<\/td><td>Khai b\u00e1o \u0111\u1ecba ch\u1ec9 webhook HTTPS<\/td><\/tr><tr><td>N8N_PROXY_HOPS<\/td><td>C\u1ea5u h\u00ecnh s\u1ed1 reverse proxy ph\u00eda tr\u01b0\u1edbc n8n<\/td><\/tr><tr><td>caddy<\/td><td>C\u1ea5p HTTPS v\u00e0 chuy\u1ec3n y\u00eau c\u1ea7u \u0111\u1ebfn \u0111\u00fang instance<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Bi\u1ebfn N8N_WEBHOOK_URL \u0111\u01b0\u1ee3c n8n h\u1ed7 tr\u1ee3 t\u1eeb phi\u00ean b\u1ea3n 2.30.0 v\u00e0 thay th\u1ebf WEBHOOK_URL c\u0169, b\u1ecb \u0111\u00e1nh d\u1ea5u deprecated t\u1eeb phi\u00ean b\u1ea3n 2.35.0. V\u00ec v\u1eady, c\u1ea5u h\u00ecnh tr\u00ean s\u1eed d\u1ee5ng \u0111\u00fang t\u00ean bi\u1ebfn theo t\u00e0i li\u1ec7u hi\u1ec7n h\u00e0nh.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0110\u1ec3 l\u01b0u file:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Nh\u1ea5n <strong>Ctrl + O<\/strong>.<\/li>\n\n\n\n<li>Nh\u1ea5n <strong>Enter<\/strong> \u0111\u1ec3 x\u00e1c nh\u1eadn.<\/li>\n\n\n\n<li>Nh\u1ea5n <strong>Ctrl + X<\/strong> \u0111\u1ec3 tho\u00e1t.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Sau \u0111\u00f3 ki\u1ec3m tra file \u0111\u00e3 \u0111\u01b0\u1ee3c t\u1ea1o:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -l<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">B\u1ea1n s\u1ebd th\u1ea5y file compose.yaml trong danh s\u00e1ch.<\/p>\n\n\n\n<h3 id=\"B\u01b0\u1edbc_7._T\u1ea1o_file_Caddy_\u0111\u1ec3_c\u1ea5u_h\u00ecnh_HTTPS\"><strong>B\u01b0\u1edbc 7. T\u1ea1o file Caddy \u0111\u1ec3 c\u1ea5u h\u00ecnh HTTPS<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Hai instance n8n s\u1ebd s\u1eed d\u1ee5ng t\u00ean mi\u1ec1n kh\u00e1c nhau nh\u01b0ng c\u00f9ng c\u1ed5ng HTTPS 443. Caddy \u0111\u1ea3m nhi\u1ec7m vi\u1ec7c chuy\u1ec3n y\u00eau c\u1ea7u \u0111\u1ebfn \u0111\u00fang container.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0110\u1ea3m b\u1ea3o \u0111ang \u1edf th\u01b0 m\u1ee5c d\u1ef1 \u00e1n:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd ~\/n8n-multi<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">T\u1ea1o file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano Caddyfile<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">D\u00e1n n\u1ed9i dung:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>n8n1.example.com {\n&nbsp;&nbsp;&nbsp;&nbsp;reverse_proxy n8n-one:5678\n}\n\nn8n2.example.com {\n&nbsp;&nbsp;&nbsp;&nbsp;reverse_proxy n8n-two:5678\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Nh\u1edb thay <strong>example.com<\/strong> b\u1eb1ng t\u00ean mi\u1ec1n th\u1ef1c t\u1ebf c\u1ee7a b\u1ea1n.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Gi\u1ea3i th\u00edch c\u00e1ch ho\u1ea1t \u0111\u1ed9ng:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Khi truy c\u1eadp <strong>https:\/\/n8n1.example.com<\/strong> \u2192 Caddy s\u1ebd chuy\u1ec3n \u0111\u1ebfn n8n-one:5678.<\/li>\n\n\n\n<li>Khi truy c\u1eadp <strong>https:\/\/n8n2.example.com<\/strong> \u2192 Caddy s\u1ebd chuy\u1ec3n \u0111\u1ebfn n8n-two:5678.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"547\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_9-6-1024x547.png\" alt=\"T\u1ea1o file Caddy \u0111\u1ec3 c\u1ea5u h\u00ecnh HTTPS\" class=\"wp-image-130687\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_9-6-1024x547.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_9-6-300x160.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_9-6-768x410.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_9-6.png 1082w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>T\u1ea1o file Caddy \u0111\u1ec3 c\u1ea5u h\u00ecnh HTTPS<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Khi DNS tr\u1ecf \u0111\u00fang v\u00e0 c\u1ed5ng 80\/443 c\u00f3 th\u1ec3 truy c\u1eadp t\u1eeb Internet, Caddy t\u1ef1 \u0111\u1ed9ng xin v\u00e0 gia h\u1ea1n ch\u1ee9ng ch\u1ec9 HTTPS cho c\u00e1c t\u00ean mi\u1ec1n ph\u00f9 h\u1ee3p.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Nh\u1ea5n <strong><\/strong><strong>Ctrl + O<\/strong>, <strong>Enter<\/strong>, r\u1ed3i <strong>Ctrl + X<\/strong> <strong><\/strong>\u0111\u1ec3 l\u01b0u.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ki\u1ec3m tra l\u1ea1i th\u01b0 m\u1ee5c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -l<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">L\u00fac n\u00e0y ph\u1ea3i c\u00f3 hai file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>n8n-multi\/\n\n\u251c\u2500\u2500 compose.yaml\n\n\u2514\u2500\u2500 Caddyfile<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"589\" height=\"128\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_10-5.png\" alt=\"Ki\u1ec3m tra l\u1ea1i th\u01b0 m\u1ee5c\" class=\"wp-image-130688\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_10-5.png 589w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_10-5-300x65.png 300w\" sizes=\"(max-width: 589px) 100vw, 589px\" \/><figcaption class=\"wp-element-caption\"><strong>Ki\u1ec3m tra l\u1ea1i th\u01b0 m\u1ee5c<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h3 id=\"B\u01b0\u1edbc_8._Ki\u1ec3m_tra_c\u1ea5u_h\u00ecnh_v\u00e0_kh\u1edfi_ch\u1ea1y_2_instance\"><strong>B\u01b0\u1edbc 8. Ki\u1ec3m tra c\u1ea5u h\u00ecnh v\u00e0 kh\u1edfi ch\u1ea1y 2 instance<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Sau khi \u0111\u00e3 t\u1ea1o \u0111\u1ea7y \u0111\u1ee7 file, ti\u1ebfn h\u00e0nh tri\u1ec3n khai n8n.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ki\u1ec3m tra Docker Compose:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker compose config -q<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">N\u1ebfu l\u1ec7nh k\u1ebft th\u00fac m\u00e0 kh\u00f4ng xu\u1ea5t hi\u1ec7n l\u1ed7i, c\u1ea5u h\u00ecnh Compose \u0111\u00e3 h\u1ee3p l\u1ec7 v\u1ec1 c\u00fa ph\u00e1p v\u00e0 kh\u1ea3 n\u0103ng ph\u00e2n gi\u1ea3i c\u1ea5u h\u00ecnh.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">T\u1ea3i c\u00e1c Docker image:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker compose pull<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">L\u1ec7nh n\u00e0y t\u1ea3i image n8n v\u00e0 Caddy theo c\u00e1c phi\u00ean b\u1ea3n \u0111\u01b0\u1ee3c khai b\u00e1o.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Kh\u1edfi ch\u1ea1y to\u00e0n b\u1ed9 d\u1ecbch v\u1ee5:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker compose up -d<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Docker s\u1ebd t\u1ea1o ba container, \u0111\u1ed3ng th\u1eddi kh\u1edfi t\u1ea1o nh\u1eefng volume d\u00f9ng \u0111\u1ec3 l\u01b0u d\u1eef li\u1ec7u.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ki\u1ec3m tra tr\u1ea1ng th\u00e1i:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker compose ps<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">N\u1ebfu th\u00e0nh c\u00f4ng, k\u1ebft qu\u1ea3 s\u1ebd c\u00f3 ba d\u1ecbch v\u1ee5 v\u1edbi tr\u1ea1ng th\u00e1i t\u01b0\u01a1ng t\u1ef1 sau:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Service<\/strong><\/td><td><strong>Tr\u1ea1ng th\u00e1i mong \u0111\u1ee3i<\/strong><\/td><\/tr><tr><td>n8n-one<\/td><td>Up<\/td><\/tr><tr><td>n8n-two<\/td><td>Up<\/td><\/tr><tr><td>caddy<\/td><td>Up<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0110\u00e2y l\u00e0 tr\u1ea1ng th\u00e1i v\u00ed d\u1ee5, kh\u00f4ng ph\u1ea3i k\u1ebft qu\u1ea3 th\u1eed nghi\u1ec7m tr\u00ean VPS c\u1ee7a b\u1ea1n.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"232\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_11-5-1024x232.png\" alt=\"\" class=\"wp-image-130689\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_11-5-1024x232.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_11-5-300x68.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_11-5-768x174.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_11-5-1536x348.png 1536w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_11-5.png 1897w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">B\u1ea1n c\u00f3 th\u1ec3 ki\u1ec3m tra nh\u1eadt k\u00fd n\u1ebfu c\u1ea7n:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker compose logs --tail=50<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">N\u1ebfu xu\u1ea5t hi\u1ec7n l\u1ed7i, c\u1ea7n x\u1eed l\u00fd tr\u01b0\u1edbc khi chuy\u1ec3n sang b\u01b0\u1edbc ti\u1ebfp theo.<\/p>\n\n\n\n<h3 id=\"B\u01b0\u1edbc_9._Truy_c\u1eadp_v\u00e0_thi\u1ebft_l\u1eadp_t\u00e0i_kho\u1ea3n_n8n\"><strong>B\u01b0\u1edbc 9. Truy c\u1eadp v\u00e0 thi\u1ebft l\u1eadp t\u00e0i kho\u1ea3n n8n<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Sau khi c\u00e1c container kh\u1edfi \u0111\u1ed9ng, m\u1edf tr\u00ecnh duy\u1ec7t tr\u00ean Windows.<\/p>\n\n\n\n<h4 id=\"Truy_c\u1eadp_instance_n8n_th\u1ee9_nh\u1ea5t\"><strong>Truy c\u1eadp instance n8n th\u1ee9 nh\u1ea5t<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">M\u1edf \u0111\u1ecba ch\u1ec9: <strong>https:\/\/n8n1.example.com<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">N\u1ebfu \u0111\u00e2y l\u00e0 l\u1ea7n truy c\u1eadp \u0111\u1ea7u ti\u00ean, n8n s\u1ebd y\u00eau c\u1ea7u thi\u1ebft l\u1eadp t\u00e0i kho\u1ea3n ch\u1ee7 s\u1edf h\u1eefu.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Th\u1ef1c hi\u1ec7n:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Nh\u1eadp email qu\u1ea3n tr\u1ecb.<\/li>\n\n\n\n<li>Nh\u1eadp h\u1ecd t\u00ean theo y\u00eau c\u1ea7u.<\/li>\n\n\n\n<li>T\u1ea1o m\u1eadt kh\u1ea9u \u0111\u1ee7 m\u1ea1nh.<\/li>\n\n\n\n<li>Ho\u00e0n th\u00e0nh ph\u1ea7n thi\u1ebft l\u1eadp t\u00e0i kho\u1ea3n v\u00e0 c\u00e1c b\u01b0\u1edbc gi\u1edbi thi\u1ec7u ti\u1ebfp theo n\u1ebfu c\u00f3.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Sau \u0111\u00f3, b\u1ea1n s\u1ebd truy c\u1eadp v\u00e0o giao di\u1ec7n qu\u1ea3n tr\u1ecb n8n.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"579\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_12-5-1024x579.png\" alt=\"Truy c\u1eadp instance n8n th\u1ee9 nh\u1ea5t\" class=\"wp-image-130690\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_12-5-1024x579.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_12-5-300x170.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_12-5-768x434.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_12-5-1536x869.png 1536w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_12-5.png 1694w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>Truy c\u1eadp instance n8n th\u1ee9 nh\u1ea5t<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h4 id=\"Truy_c\u1eadp_instance_n8n_th\u1ee9_hai\"><strong>Truy c\u1eadp instance n8n th\u1ee9 hai<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">M\u1edf \u0111\u1ecba ch\u1ec9: <strong>https:\/\/n8n2.example.com<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ti\u1ebfp t\u1ee5c t\u1ea1o t\u00e0i kho\u1ea3n qu\u1ea3n tr\u1ecb cho instance th\u1ee9 hai.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"572\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_13-2-1024x572.png\" alt=\"Truy c\u1eadp instance n8n th\u1ee9 hai\" class=\"wp-image-130691\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_13-2-1024x572.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_13-2-300x168.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_13-2-768x429.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_13-2-1536x858.png 1536w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/Screenshot_13-2.png 1689w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>Truy c\u1eadp instance n8n th\u1ee9 hai<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Hai instance c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng email qu\u1ea3n tr\u1ecb gi\u1ed1ng nhau ho\u1eb7c kh\u00e1c nhau, nh\u01b0ng d\u1eef li\u1ec7u t\u00e0i kho\u1ea3n \u0111\u01b0\u1ee3c l\u01b0u \u0111\u1ed9c l\u1eadp. \u0110\u1ed1i v\u1edbi m\u00f4i tr\u01b0\u1eddng th\u1ef1c t\u1ebf, n\u00ean qu\u1ea3n l\u00fd th\u00f4ng tin x\u00e1c th\u1ef1c c\u1ea9n th\u1eadn cho t\u1eebng h\u1ec7 th\u1ed1ng.<\/p>\n\n\n\n<h3 id=\"B\u01b0\u1edbc_10._Ki\u1ec3m_tra_hai_instance_c\u00f3_ho\u1ea1t_\u0111\u1ed9ng_\u0111\u1ed9c_l\u1eadp_kh\u00f4ng\"><strong>B\u01b0\u1edbc 10. Ki\u1ec3m tra hai instance c\u00f3 ho\u1ea1t \u0111\u1ed9ng \u0111\u1ed9c l\u1eadp kh\u00f4ng<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Sau khi \u0111\u0103ng nh\u1eadp c\u1ea3 hai instance, b\u1ea1n n\u00ean ki\u1ec3m tra kh\u1ea3 n\u0103ng t\u1ea1o v\u00e0 l\u01b0u workflow.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">H\u00e3y t\u1ea1o workflow th\u1eed nghi\u1ec7m t\u1ea1i n8n th\u1ee9 nh\u1ea5t. Sau \u0111\u00f3, truy c\u1eadp n8n th\u1ee9 hai v\u00e0 m\u1edf danh s\u00e1ch workflow.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">N\u1ebfu hai instance \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1ea5u h\u00ecnh \u0111\u1ed9c l\u1eadp, workflow v\u1eeba t\u1ea1o \u1edf n8n th\u1ee9 nh\u1ea5t s\u1ebd kh\u00f4ng xu\u1ea5t hi\u1ec7n trong n8n th\u1ee9 hai.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ki\u1ec3m tra tr\u1ea1ng th\u00e1i b\u1eb1ng Terminal. Tr\u00ean Xshell, ch\u1ea1y:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -fsS https:\/\/n8n1.example.com\/healthz<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ti\u1ebfp t\u1ee5c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -fsS https:\/\/n8n2.example.com\/healthz<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">N\u1ebfu c\u1ea3 hai l\u1ec7nh ho\u00e0n th\u00e0nh th\u00e0nh c\u00f4ng, endpoint ki\u1ec3m tra tr\u1ea1ng th\u00e1i c\u1ee7a t\u1eebng instance \u0111\u00e3 ph\u1ea3n h\u1ed3i qua HTTPS.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 ki\u1ec3m tra ri\u00eang t\u1eebng container:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker compose logs --tail=30 n8n-one<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker compose logs --tail=30 n8n-two<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0110\u1ebfn \u0111\u00e2y, qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t hai instance n8n tr\u00ean c\u00f9ng m\u1ed9t VPS \u0111\u00e3 ho\u00e0n t\u1ea5t.<\/p>\n\n\n\n<h2 id=\"Nh\u1eefng_l\u1ed7i_c\u00f3_th\u1ec3_g\u1eb7p_khi_c\u00e0i_\u0111\u1eb7t_nhi\u1ec1u_instance_n8n\"><strong>Nh\u1eefng l\u1ed7i c\u00f3 th\u1ec3 g\u1eb7p khi c\u00e0i \u0111\u1eb7t nhi\u1ec1u instance n8n<\/strong><\/h2>\n\n\n\n<h3 id=\"L\u1ed7i_1:_Kh\u00f4ng_truy_c\u1eadp_\u0111\u01b0\u1ee3c_t\u00ean_mi\u1ec1n\"><strong>L\u1ed7i 1: Kh\u00f4ng truy c\u1eadp \u0111\u01b0\u1ee3c t\u00ean mi\u1ec1n<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Ki\u1ec3m tra DNS \u0111\u00e3 tr\u1ecf \u0111\u00fang IP, firewall cho ph\u00e9p 80\/443 v\u00e0 ba container \u0111ang ho\u1ea1t \u0111\u1ed9ng. S\u1eed d\u1ee5ng sudo docker compose logs &#8211;tail=50 caddy \u0111\u1ec3 xem l\u1ed7i HTTPS.<\/p>\n\n\n\n<h3 id=\"L\u1ed7i_2:_Caddy_b\u00e1o_502_Bad_Gateway\"><strong>L\u1ed7i 2: Caddy b\u00e1o 502 Bad Gateway<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">C\u00f3 th\u1ec3 container n8n ch\u01b0a kh\u1edfi \u0111\u1ed9ng xong, \u0111ang g\u1eb7p l\u1ed7i ho\u1eb7c \u0111\u1ecba ch\u1ec9 d\u1ecbch v\u1ee5 trong Caddyfile b\u1ecb sai. Ki\u1ec3m tra sudo docker compose ps v\u00e0 log n8n t\u01b0\u01a1ng \u1ee9ng.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/chay-nhieu-instance-n8n-tren-cung-1-vps-2.png\" alt=\"Nh\u1eefng l\u1ed7i c\u00f3 th\u1ec3 g\u1eb7p khi c\u00e0i \u0111\u1eb7t nhi\u1ec1u instance n8n\" class=\"wp-image-130697\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/chay-nhieu-instance-n8n-tren-cung-1-vps-2.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/chay-nhieu-instance-n8n-tren-cung-1-vps-2-300x161.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>Nh\u1eefng l\u1ed7i c\u00f3 th\u1ec3 g\u1eb7p khi c\u00e0i \u0111\u1eb7t nhi\u1ec1u instance n8n<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h3 id=\"L\u1ed7i_3:_Port_is_already_allocated\"><strong>L\u1ed7i 3: Port is already allocated<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">C\u1ed5ng 80 ho\u1eb7c 443 \u0111ang \u0111\u01b0\u1ee3c \u1ee9ng d\u1ee5ng kh\u00e1c s\u1eed d\u1ee5ng. Ki\u1ec3m tra b\u1eb1ng sudo ss -ltnp \u0111\u1ec3 t\u00ecm ti\u1ebfn tr\u00ecnh \u0111ang l\u1eafng nghe. C\u1ea7n x\u1eed l\u00fd xung \u0111\u1ed9t tr\u01b0\u1edbc khi kh\u1edfi \u0111\u1ed9ng Caddy.<\/p>\n\n\n\n<h3 id=\"L\u1ed7i_4:_Container_n8n_t\u1ef1_kh\u1edfi_\u0111\u1ed9ng_l\u1ea1i_li\u00ean_t\u1ee5c\"><strong>L\u1ed7i 4: Container n8n t\u1ef1 kh\u1edfi \u0111\u1ed9ng l\u1ea1i li\u00ean t\u1ee5c<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Ki\u1ec3m tra sudo docker compose logs &#8211;tail=100 n8n-one ho\u1eb7c thay b\u1eb1ng n8n-two. Nguy\u00ean nh\u00e2n c\u00f3 th\u1ec3 li\u00ean quan \u0111\u1ebfn c\u1ea5u h\u00ecnh, quy\u1ec1n l\u01b0u d\u1eef li\u1ec7u ho\u1eb7c thi\u1ebfu t\u00e0i nguy\u00ean.<\/p>\n\n\n\n<h2 id=\"Nh\u1eefng_l\u01b0u_\u00fd_quan_tr\u1ecdng_khi_c\u00e0i_nhi\u1ec1u_instance_n8n\"><strong>Nh\u1eefng l\u01b0u \u00fd quan tr\u1ecdng khi c\u00e0i nhi\u1ec1u instance n8n<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Kh\u00f4ng c\u1ea7n m\u1edf c\u1ed5ng 5678 ra Internet: <\/strong>Docker Compose cho ph\u00e9p Caddy truy c\u1eadp tr\u1ef1c ti\u1ebfp c\u00e1c container qua m\u1ea1ng n\u1ed9i b\u1ed9.<\/li>\n\n\n\n<li><strong>M\u1ed7i instance s\u1eed d\u1ee5ng SQLite ri\u00eang:<\/strong> Ph\u00f9 h\u1ee3p v\u1edbi b\u00e0i th\u1ef1c h\u00e0nh n\u00e0y. V\u1edbi workflow quan tr\u1ecdng ho\u1eb7c ho\u1ea1t \u0111\u1ed9ng th\u01b0\u1eddng xuy\u00ean, n\u00ean c\u00e2n nh\u1eafc PostgreSQL.<\/li>\n\n\n\n<li><strong>Ph\u1ea3i sao l\u01b0u d\u1eef li\u1ec7u \u0111\u1ecbnh k\u1ef3: <\/strong>Sao l\u01b0u c\u1ea3 database v\u00e0 kh\u00f3a m\u00e3 h\u00f3a credentials c\u1ee7a m\u1ed7i instance. Kh\u00f4ng ch\u1ec9 sao ch\u00e9p file Compose.<\/li>\n\n\n\n<li><strong>Kh\u00f4ng s\u1eed d\u1ee5ng <code>sudo docker compose down -v<\/code> khi c\u00f3 d\u1eef li\u1ec7u c\u1ea7n gi\u1eef: <\/strong>T\u00f9y ch\u1ecdn -v x\u00f3a c\u00e1c volume do Compose qu\u1ea3n l\u00fd.<\/li>\n\n\n\n<li><strong>Theo d\u00f5i CPU v\u00e0 RAM: <\/strong>Hai n8n c\u00f9ng d\u00f9ng t\u00e0i nguy\u00ean VPS n\u00ean c\u00f3 th\u1ec3 \u1ea3nh h\u01b0\u1edfng l\u1eabn nhau khi workload t\u0103ng cao.<\/li>\n\n\n\n<li><strong>C\u1eadp nh\u1eadt n8n c\u00f3 ki\u1ec3m so\u00e1t:<\/strong> Sao l\u01b0u tr\u01b0\u1edbc khi ch\u1ec9nh s\u1eeda tag phi\u00ean b\u1ea3n, sau \u0111\u00f3 m\u1edbi t\u1ea3i image m\u1edbi v\u00e0 t\u1ea1o l\u1ea1i container.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/chay-nhieu-instance-n8n-tren-cung-1-vps-3-1.png\" alt=\"Nh\u1eefng l\u01b0u \u00fd quan tr\u1ecdng khi c\u00e0i nhi\u1ec1u instance n8n\" class=\"wp-image-130698\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/chay-nhieu-instance-n8n-tren-cung-1-vps-3-1.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/chay-nhieu-instance-n8n-tren-cung-1-vps-3-1-300x161.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>Nh\u1eefng l\u01b0u \u00fd quan tr\u1ecdng khi c\u00e0i nhi\u1ec1u instance n8n<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h2 id=\"K\u1ebft_lu\u1eadn\"><strong>K\u1ebft lu\u1eadn<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Ch\u1ea1y nhi\u1ec1u instance n8n tr\u00ean c\u00f9ng m\u1ed9t VPS b\u1eb1ng Docker Compose l\u00e0 c\u00e1ch \u0111\u01a1n gi\u1ea3n \u0111\u1ec3 qu\u1ea3n l\u00fd nhi\u1ec1u h\u1ec7 th\u1ed1ng t\u1ef1 \u0111\u1ed9ng h\u00f3a \u0111\u1ed9c l\u1eadp m\u00e0 kh\u00f4ng c\u1ea7n s\u1eed d\u1ee5ng nhi\u1ec1u m\u00e1y ch\u1ee7. M\u1ed7i instance c\u00f3 th\u1ec3 s\u1edf h\u1eefu t\u00e0i kho\u1ea3n, workflow, database v\u00e0 t\u00ean mi\u1ec1n ri\u00eang.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sau khi tri\u1ec3n khai, b\u1ea1n n\u00ean th\u01b0\u1eddng xuy\u00ean theo d\u00f5i CPU, RAM v\u00e0 sao l\u01b0u d\u1eef li\u1ec7u \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o ho\u1ea1t \u0111\u1ed9ng \u1ed5n \u0111\u1ecbnh. Khi nhu c\u1ea7u x\u1eed l\u00fd t\u0103ng cao, h\u00e3y c\u00e2n nh\u1eafc n\u00e2ng c\u1ea5p VPS ho\u1eb7c ph\u00e2n chia c\u00e1c instance sang nh\u1eefng m\u00e1y ch\u1ee7 ri\u00eang.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><span style=\"text-decoration: underline\">C\u00e1c b\u00e0i vi\u1ebft li\u00ean quan:<\/span><\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/tino.vn\/blog\/doi-database-n8n-tu-sqlite-sang-postgresql\/\">H\u01b0\u1edbng d\u1eabn \u0111\u1ed5i database n8n t\u1eeb SQLite sang PostgreSQ<\/a><a href=\"https:\/\/tino.vn\/blog\/doi-database-n8n-tu-sqlite-sang-postgresql\/\" target=\"_blank\" rel=\"noreferrer noopener\">L<\/a><a href=\"https:\/\/tino.vn\/blog\/doi-database-n8n-tu-sqlite-sang-postgresql\/\"> kh\u00f4ng m\u1ea5t workflow<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/tino.vn\/blog\/toi-uu-ram-va-cpu-cho-n8n-docker-tren-vps\/\" target=\"_blank\" rel=\"noreferrer noopener\">H\u01b0\u1edbng d\u1eabn t\u1ed1i \u01b0u RAM v\u00e0 CPU cho n8n Docker tr\u00ean VPS&nbsp;<\/a><\/li>\n<\/ul>\n\n\n\n<h2 id=\"Nh\u1eefng_c\u00e2u_h\u1ecfi_th\u01b0\u1eddng_g\u1eb7p\"><strong>Nh\u1eefng c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p<\/strong><\/h2>\n\n\n\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"C\u00e1c_instance_c\u00f3_t\u1ef1_ch\u1ea1y_l\u1ea1i_khi_VPS_kh\u1edfi_\u0111\u1ed9ng_l\u1ea1i_kh\u00f4ng?\">C\u00e1c instance c\u00f3 t\u1ef1 ch\u1ea1y l\u1ea1i khi VPS kh\u1edfi \u0111\u1ed9ng l\u1ea1i kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">C\u00f3, n\u1ebfu d\u1ecbch v\u1ee5 Docker \u0111\u01b0\u1ee3c b\u1eadt kh\u1edfi \u0111\u1ed9ng c\u00f9ng h\u1ec7 th\u1ed1ng v\u00e0 container c\u00f3 <code>restart: unless-stopped<\/code> nh\u01b0 c\u1ea5u h\u00ecnh trong b\u00e0i. Ki\u1ec3m tra b\u1eb1ng <code>systemctl is-enabled docker<\/code>, k\u1ebft qu\u1ea3 c\u1ea7n l\u00e0 enabled. Ri\u00eang container \u0111\u00e3 b\u1ecb d\u1eebng th\u1ee7 c\u00f4ng b\u1eb1ng docker compose stop s\u1ebd kh\u00f4ng t\u1ef1 ch\u1ea1y l\u1ea1i sau khi kh\u1edfi \u0111\u1ed9ng.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"C\u00f3_th\u1ec3_c\u00e0i_th\u00eam_instance_n8n_sau_khi_\u0111\u00e3_tri\u1ec3n_khai_2_instance_kh\u00f4ng?\">C\u00f3 th\u1ec3 c\u00e0i th\u00eam instance n8n sau khi \u0111\u00e3 tri\u1ec3n khai 2 instance kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">C\u00f3. B\u1ea1n ch\u1ec9 c\u1ea7n khai b\u00e1o th\u00eam d\u1ecbch v\u1ee5 n8n trong Docker Compose, t\u1ea1o volume l\u01b0u tr\u1eef ri\u00eang v\u00e0 c\u1ea5u h\u00ecnh t\u00ean mi\u1ec1n t\u01b0\u01a1ng \u1ee9ng trong Caddy. \u0110\u1ed3ng th\u1eddi, c\u1ea7n ki\u1ec3m tra t\u00e0i nguy\u00ean VPS tr\u01b0\u1edbc khi m\u1edf r\u1ed9ng.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"M\u1ed9t_VPS_c\u00f3_th\u1ec3_ch\u1ea1y_t\u1ed1i_\u0111a_bao_nhi\u00eau_instance_n8n?\">M\u1ed9t VPS c\u00f3 th\u1ec3 ch\u1ea1y t\u1ed1i \u0111a bao nhi\u00eau instance n8n?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">Kh\u00f4ng c\u00f3 gi\u1edbi h\u1ea1n c\u1ed1 \u0111\u1ecbnh. S\u1ed1 l\u01b0\u1ee3ng instance ph\u1ee5 thu\u1ed9c v\u00e0o c\u1ea5u h\u00ecnh VPS v\u00e0 m\u1ee9c ti\u00eau th\u1ee5 t\u00e0i nguy\u00ean c\u1ee7a t\u1eebng workflow. VPS c\u00f3 CPU v\u00e0 RAM c\u00e0ng l\u1edbn th\u00ec kh\u1ea3 n\u0103ng ch\u1ea1y nhi\u1ec1u instance c\u00e0ng cao, nh\u01b0ng c\u1ea7n theo d\u00f5i hi\u1ec7u su\u1ea5t th\u1ef1c t\u1ebf.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">N\u00e2ng c\u1ea5p c\u1ea5u h\u00ecnh VPS t\u1ea1i: <a href=\"https:\/\/tino.vn\/vps-gia-re\">https:<\/a><a href=\"https:\/\/tino.vn\/vps-gia-re\" target=\"_blank\" rel=\"noreferrer noopener\">\/\/<\/a><a href=\"https:\/\/tino.vn\/vps-gia-re\">tino.vn\/vps-gia-re<\/a><\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"Ch\u1ea1y_nhi\u1ec1u_instance_n8n_c\u00f3_l\u00e0m_ch\u1eadm_VPS_kh\u00f4ng?\">Ch\u1ea1y nhi\u1ec1u instance n8n c\u00f3 l\u00e0m ch\u1eadm VPS kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">C\u00f3 th\u1ec3. Khi nhi\u1ec1u workflow th\u1ef1c thi \u0111\u1ed3ng th\u1eddi, CPU v\u00e0 RAM s\u1ebd \u0111\u01b0\u1ee3c chia s\u1ebb gi\u1eefa c\u00e1c instance. N\u1ebfu VPS kh\u00f4ng \u0111\u1ee7 t\u00e0i nguy\u00ean, t\u1ed1c \u0111\u1ed9 x\u1eed l\u00fd c\u00f3 th\u1ec3 gi\u1ea3m.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"C\u00f3_c\u1ea7n_s\u1eed_d\u1ee5ng_t\u00ean_mi\u1ec1n_ri\u00eang_cho_m\u1ed7i_instance_n8n_kh\u00f4ng?\">C\u00f3 c\u1ea7n s\u1eed d\u1ee5ng t\u00ean mi\u1ec1n ri\u00eang cho m\u1ed7i instance n8n kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">Kh\u00f4ng b\u1eaft bu\u1ed9c. B\u1ea1n c\u00f3 th\u1ec3 truy c\u1eadp qua c\u00e1c c\u1ed5ng kh\u00e1c nhau \u0111\u1ec3 th\u1eed nghi\u1ec7m. Tuy nhi\u00ean, s\u1eed d\u1ee5ng subdomain ri\u00eang k\u1ebft h\u1ee3p HTTPS s\u1ebd thu\u1eadn ti\u1ec7n v\u00e0 ph\u00f9 h\u1ee3p h\u01a1n khi tri\u1ec3n khai th\u1ef1c t\u1ebf.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\n<script type=\"application\/ld+json\">\n\t{\n\t\t\"@context\": \"https:\/\/schema.org\",\n\t\t\"@type\": \"FAQPage\",\n\t\t\"mainEntity\": [\n\t\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"C\u00e1c instance c\u00f3 t\u1ef1 ch\u1ea1y l\u1ea1i khi VPS kh\u1edfi \u0111\u1ed9ng l\u1ea1i kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>C\u00f3, n\u1ebfu d\u1ecbch v\u1ee5 Docker \u0111\u01b0\u1ee3c b\u1eadt kh\u1edfi \u0111\u1ed9ng c\u00f9ng h\u1ec7 th\u1ed1ng v\u00e0 container c\u00f3 restart: unless-stopped nh\u01b0 c\u1ea5u h\u00ecnh trong b\u00e0i. Ki\u1ec3m tra b\u1eb1ng systemctl is-enabled docker, k\u1ebft qu\u1ea3 c\u1ea7n l\u00e0 enabled. Ri\u00eang container \u0111\u00e3 b\u1ecb d\u1eebng th\u1ee7 c\u00f4ng b\u1eb1ng docker compose stop s\u1ebd kh\u00f4ng t\u1ef1 ch\u1ea1y l\u1ea1i sau khi kh\u1edfi \u0111\u1ed9ng.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"C\u00f3 th\u1ec3 c\u00e0i th\u00eam instance n8n sau khi \u0111\u00e3 tri\u1ec3n khai 2 instance kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>C\u00f3. B\u1ea1n ch\u1ec9 c\u1ea7n khai b\u00e1o th\u00eam d\u1ecbch v\u1ee5 n8n trong Docker Compose, t\u1ea1o volume l\u01b0u tr\u1eef ri\u00eang v\u00e0 c\u1ea5u h\u00ecnh t\u00ean mi\u1ec1n t\u01b0\u01a1ng \u1ee9ng trong Caddy. \u0110\u1ed3ng th\u1eddi, c\u1ea7n ki\u1ec3m tra t\u00e0i nguy\u00ean VPS tr\u01b0\u1edbc khi m\u1edf r\u1ed9ng.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"M\u1ed9t VPS c\u00f3 th\u1ec3 ch\u1ea1y t\u1ed1i \u0111a bao nhi\u00eau instance n8n?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Kh\u00f4ng c\u00f3 gi\u1edbi h\u1ea1n c\u1ed1 \u0111\u1ecbnh. S\u1ed1 l\u01b0\u1ee3ng instance ph\u1ee5 thu\u1ed9c v\u00e0o c\u1ea5u h\u00ecnh VPS v\u00e0 m\u1ee9c ti\u00eau th\u1ee5 t\u00e0i nguy\u00ean c\u1ee7a t\u1eebng workflow. VPS c\u00f3 CPU v\u00e0 RAM c\u00e0ng l\u1edbn th\u00ec kh\u1ea3 n\u0103ng ch\u1ea1y nhi\u1ec1u instance c\u00e0ng cao, nh\u01b0ng c\u1ea7n theo d\u00f5i hi\u1ec7u su\u1ea5t th\u1ef1c t\u1ebf.<\/p><p>N\u00e2ng c\u1ea5p c\u1ea5u h\u00ecnh VPS t\u1ea1i: <a>https:<\/a><a>\/\/<\/a><a>tino.vn\/vps-gia-re<\/a><\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"Ch\u1ea1y nhi\u1ec1u instance n8n c\u00f3 l\u00e0m ch\u1eadm VPS kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>C\u00f3 th\u1ec3. Khi nhi\u1ec1u workflow th\u1ef1c thi \u0111\u1ed3ng th\u1eddi, CPU v\u00e0 RAM s\u1ebd \u0111\u01b0\u1ee3c chia s\u1ebb gi\u1eefa c\u00e1c instance. N\u1ebfu VPS kh\u00f4ng \u0111\u1ee7 t\u00e0i nguy\u00ean, t\u1ed1c \u0111\u1ed9 x\u1eed l\u00fd c\u00f3 th\u1ec3 gi\u1ea3m.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"C\u00f3 c\u1ea7n s\u1eed d\u1ee5ng t\u00ean mi\u1ec1n ri\u00eang cho m\u1ed7i instance n8n kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Kh\u00f4ng b\u1eaft bu\u1ed9c. B\u1ea1n c\u00f3 th\u1ec3 truy c\u1eadp qua c\u00e1c c\u1ed5ng kh\u00e1c nhau \u0111\u1ec3 th\u1eed nghi\u1ec7m. Tuy nhi\u00ean, s\u1eed d\u1ee5ng subdomain ri\u00eang k\u1ebft h\u1ee3p HTTPS s\u1ebd thu\u1eadn ti\u1ec7n v\u00e0 ph\u00f9 h\u1ee3p h\u01a1n khi tri\u1ec3n khai th\u1ef1c t\u1ebf.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t]\n\t}\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>B\u1ea1n c\u00f3 th\u1ec3 ch\u1ea1y nhi\u1ec1u instance n8n tr\u00ean c\u00f9ng 1 VPS b\u1eb1ng c\u00e1ch t\u1ea1o c\u00e1c Docker container \u0111\u1ed9c l\u1eadp, k\u1ebft h\u1ee3p Docker Compose v\u00e0 Reverse Proxy \u0111\u1ec3 qu\u1ea3n l\u00fd t\u00ean mi\u1ec1n, HTTPS cho t\u1eebng h\u1ec7 th\u1ed1ng. M\u1ed7i instance s\u1ebd c\u00f3 giao di\u1ec7n qu\u1ea3n tr\u1ecb, workflow, t\u00e0i kho\u1ea3n v\u00e0 d\u1eef li\u1ec7u ri\u00eang. Gi\u1ea3i ph\u00e1p n\u00e0y ph\u00f9 [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":130699,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7397],"tags":[7343],"class_list":["post-130666","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-n8n","tag-n8n"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/130666","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=130666"}],"version-history":[{"count":13,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/130666\/revisions"}],"predecessor-version":[{"id":130701,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/130666\/revisions\/130701"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/130699"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=130666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/categories?post=130666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=130666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}