{"id":264053,"date":"2015-08-21T16:37:02","date_gmt":"2015-08-21T12:37:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=264053"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=264053","title":{"rendered":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 docker-\u043e\u0431\u0440\u0430\u0437 NGINX \u0432 InfoboxCloud: \u0447\u0430\u0441\u0442\u044c 1"},"content":{"rendered":"<p>     \t\u0417\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0433\u043e\u0434 \u0432 Docker Hub \u0441\u0442\u0430\u043b\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0443\u0436\u0435 \u0431\u043e\u043b\u0435\u0435 100 000 \u043e\u0431\u0440\u0430\u0437\u043e\u0432, \u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u043b\u0438\u0441\u044c \u043e\u0431\u0440\u0430\u0437\u044b \u0441 Docker Hub \u0443\u0436\u0435 \u0431\u043e\u043b\u0435\u0435 300 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u0432 \u0440\u0430\u0437. \u0418\u0437 \u043d\u0438\u0445 \u0431\u043e\u043b\u0435\u0435 20 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u043a \u043f\u0440\u0438\u0448\u043b\u0438\u0441\u044c \u043d\u0430 70 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 Docker, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a Oracle, CentOS \u0438 NGINX.<\/p>\n<p>  NGINX \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 40% \u0441\u0430\u043c\u044b\u0445 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0441\u0430\u0439\u0442\u043e\u0432 \u0432 \u043c\u0438\u0440\u0435, \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u043a \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440, \u043d\u043e \u0438 \u043a\u0430\u043a \u0440\u0435\u0432\u0435\u0440\u0441-\u043f\u0440\u043e\u043a\u0441\u0438 \u0441\u0435\u0440\u0432\u0435\u0440, \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438 HTTP \u043a\u044d\u0448. \u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 NGINX \u0431\u044b\u043b \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d 3.4 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430 \u0440\u0430\u0437. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/367\/5e3\/329\/3675e3329e95abf27fcf422ccbedc186.png\" width=\"400\"\/><\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0432\u044b \u0443\u0437\u043d\u0430\u0435\u0442\u0435:  <\/p>\n<ul>\n<li>\u043a\u0430\u043a \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Docker-\u043e\u0431\u0440\u0430\u0437 \u0441 NGINX.<\/li>\n<li>\u043a\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0440\u0435\u0432\u0435\u0440\u0441-\u043f\u0440\u043e\u043a\u0441\u0438 \u043d\u0430 NGINX \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0430\u0439\u0442\u043e\u0432 \u0432 Docker<\/li>\n<li>\u043a\u0430\u043a \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0433\u0435\u043e\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0443\u044e \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044e, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0443\u044e \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0430\u0439\u0442\u043e\u0432 \u0438 \u0440\u0435\u0432\u0435\u0440\u0441-\u043f\u0440\u043e\u043a\u0441\u0438 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 3\u0445 \u0440\u0435\u0433\u0438\u043e\u043d\u043e\u0432 InfoboxCloud.<\/li>\n<\/ul>\n<p>  \u0415\u0441\u043b\u0438 \u0440\u0430\u043d\u044c\u0448\u0435 \u0432\u044b \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 Docker, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043a \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u044e:<br \/>  <a href=\"https:\/\/infoboxcloud.ru\/community\/blog\/iaas\/149.html\">\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Docker \u0438 \u043d\u0435 \u0432\u043e\u043b\u043d\u0443\u0435\u043c\u0441\u044f \u043e vendor-lock<\/a><br \/>  <a href=\"https:\/\/infoboxcloud.ru\/community\/blog\/iaas\/200.html\">\u041f\u043e\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0441\u044f \u0432 Docker: Dockerfile \u0438 \u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0446\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438<\/a><br \/>  <a href=\"https:\/\/infoboxcloud.ru\/community\/blog\/iaas\/306.html\">\u041e\u0431\u0437\u043e\u0440 \u043d\u043e\u0432\u0448\u0435\u0441\u0442\u0432 Docker Engine \u0441 1.0 \u0434\u043e 1.8. \u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 Docker Compose<\/a><\/p>\n<p>  \u0412 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u044b \u0440\u0430\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0431\u043d\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 <a href=\"https:\/\/infoboxcloud.ru\">InfoboxCloud<\/a> \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4><b>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f<\/b><\/h4>\n<p>  1. \u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 CentOS 7 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 Docker \u0432 <a href=\"http:\/\/infoboxcloud.ru\">InfoboxCloud<\/a>. \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b Docker \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0433\u0430\u043b\u043e\u0447\u043a\u0443 <a href=\"https:\/\/infoboxcloud.ru\/community\/blog\/iaas\/220.html\">\u00ab\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u044f\u0434\u0440\u043e\u043c \u041e\u0421\u00bb<\/a>.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 InfoboxCloud \u0434\u043b\u044f Docker<\/b><\/p>\n<div class=\"spoiler_text\">\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0449\u0435 \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 InfoboxCloud \u2013 <a href=\"http:\/\/infoboxcloud.ru\">\u0437\u0430\u043a\u0430\u0436\u0438\u0442\u0435 \u0435\u0433\u043e<\/a>. <\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430 email. \u0412\u043e\u0439\u0434\u0438\u0442\u0435 \u0432 \u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443: <a href=\"https:\/\/panel.infobox.ru\">https:\/\/panel.infobox.ru<\/a><\/p>\n<p>  \u0412 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u00ab\u041e\u0431\u043b\u0430\u0447\u043d\u0430\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u00bb \u0432\u0430\u0448\u0435\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u00ab\u041d\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440\u00bb (\u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u0430\u0432\u043e\u043c \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0443\u0433\u043b\u0443 \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u043c\u0435\u043d\u044e).<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/310\/42e\/72e\/31042e72ee98602ef330beac537f88b6.jpg\" width=\"700\"\/><\/p>\n<p>  \u0417\u0430\u0434\u0430\u0439\u0442\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0443 1 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 IP\u2013\u0430\u0434\u0440\u0435\u0441 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0433\u0430\u043b\u043e\u0447\u043a\u0443 <strong>\u00ab\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u044f\u0434\u0440\u043e\u043c \u041e\u0421\u00bb<\/strong>, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435 \u043d\u0438\u0436\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/a6c\/113\/e13\/a6c113e13c98ed44173c0bcced54ef59.jpg\" width=\"700\"\/><\/p>\n<p>  \u0412 \u0441\u043f\u0438\u0441\u043a\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 CentOS 7 \u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/25f\/e37\/954\/25fe379543a3934d634af1dc6d8c423c.jpg\" width=\"400\"\/><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043f\u0440\u0438\u0434\u0443\u0442 \u043a \u0432\u0430\u043c \u043d\u0430 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0443\u044e \u043f\u043e\u0447\u0442\u0443.  <\/div>\n<\/div>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441 CentOS 7 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u0441\u044c \u043a \u043d\u0435\u043c\u0443 <a href=\"https:\/\/infoboxcloud.ru\/community\/blog\/linuxvps\/304.html\">\u043f\u043e SSH<\/a>.<\/p>\n<p>  \u041c\u044b \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u0430\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Docker \u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Docker \u043d\u0430 \u0442\u0430\u043a\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. <\/p>\n<p>  \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 Docker \u0438 Compose:  <\/p>\n<pre><code class=\"bash\">bash &lt;(curl -s http:\/\/repository.sandbox.infoboxcloud.ru\/scripts\/docker\/centos7\/install.sh) <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e docker \u0438 compose \u0431\u0443\u0434\u0443\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b. \u041c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437 \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c docker \u0432 <a href=\"https:\/\/panel.infobox.ru\">\u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f<\/a>, \u043d\u0430\u0436\u0430\u0432 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0434\u0430\u043b\u0435\u0435 \u00ab\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437\u00bb.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0438\u0437 \u043e\u0431\u0440\u0430\u0437\u0430 \u0441 Docker \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u044d\u0442\u043e\u0442 \u0448\u0430\u0433 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e. <\/p>\n<h4><b>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u0433\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f<\/b><\/h4>\n<p>  \u041d\u0430\u0448\u0435 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437:  <\/p>\n<ul>\n<li><strong>Dockerfile<\/strong> \u2013 \u0444\u0430\u0439\u043b\u0430, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430<\/li>\n<li><strong>docker-compose.yml<\/strong> \u2014 \u0444\u0430\u0439\u043b\u0430, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0438\u043b\u0438 \u043d\u0430\u0431\u043e\u0440\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432<\/li>\n<li><strong>\u0444\u0430\u0439\u043b\u043e\u0432 \u0441\u0430\u0439\u0442\u0430 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 html<\/strong><\/li>\n<li><strong>\u0444\u0430\u0439\u043b\u043e\u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 nginx<\/strong> \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 conf<\/li>\n<\/ul>\n<p>  \u041b\u0443\u0447\u0448\u0435 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 github, \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u0441\u0430\u0439\u0442\u0430 \u0438\u043b\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u0435\u0440\u0435\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0431\u044b\u0442\u044c \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u043c\u0438, \u0447\u0442\u043e \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 \u0437\u0430 \u0441\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0435 \u043c\u0438\u043d\u0443\u0442\u044b. \u0422\u0430\u043a\u0436\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0442\u044c \u0441\u0430\u0439\u0442 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438.<\/p>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 git \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0435\u0433\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.  <\/p>\n<pre><code class=\"bash\">yum install -y git <\/code><\/pre>\n<p>  \u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u043d\u0430\u0448\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0438\u0437 github \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:  <\/p>\n<pre><code class=\"bash\">git clone https:\/\/github.com\/InfoboxHosting\/DockerNginxSimpleStaticSite.git <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:  <\/p>\n<pre><code class=\"bash\">cd DockerNginxSimpleStaticSite\/ <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u043e\u0431\u0440\u0430\u0437 Docker \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b   <\/p>\n<pre><code class=\"bash\">docker-compose build <\/code><\/pre>\n<p>  \u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0438\u0442\u0435 \u043e\u0431\u0440\u0430\u0437 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439  <\/p>\n<pre><code class=\"bash\">docker-compose up -d <\/code><\/pre>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0437\u0430\u0439\u0442\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u043e IP. \u041f\u0440\u0435\u0434\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0430\u0439\u0442 \u0431\u044b\u043b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/infoboxcloud.ru\/community\/uploads\/images\/00\/00\/01\/2015\/08\/21\/fbd2ab.jpg\" width=\"400\"\/><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c <\/p>\n<pre><code class=\"bash\">docker ps <\/code><\/pre>\n<p> \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u0430\u0439\u0442 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/infoboxcloud.ru\/community\/uploads\/images\/00\/00\/01\/2015\/08\/21\/5eac3d.jpg\" width=\"800\"\/><\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f, \u0438\u0437 \u0447\u0435\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/infoboxcloud.ru\/community\/uploads\/images\/00\/00\/01\/2015\/08\/21\/b61136.jpg\" width=\"500\"\/><\/p>\n<p>  \u0412 \u0444\u0430\u0439\u043b\u0435 <strong>conf\/nginx.conf<\/strong> \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f nginx:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">nginx.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">user www-data; worker_processes 1; pid \/run\/nginx.pid;  events {     worker_connections 4086;     use epoll;     multi_accept on; }  http {      sendfile on;     tcp_nopush on;     tcp_nodelay on;     keepalive_timeout 65;     keepalive_requests 1000;     types_hash_max_size 2048;      include \/etc\/nginx\/mime.types;     default_type application\/octet-stream;      access_log \/var\/log\/nginx\/access.log;     error_log \/var\/log\/nginx\/error.log;      gzip on;     gzip_min_length 10240;     gzip_proxied expired no-cache no-store private auth;     gzip_types text\/plain text\/css text\/xml text\/javascript application\/x-javascript application\/xml;     gzip_disable &quot;msie6&quot;;      include \/etc\/nginx\/conf.d\/*.conf;     include \/etc\/nginx\/sites-enabled\/*;      server {         listen 80;         server_name  domain.tld  www.domain.tld;          location \/ {             root \/usr\/share\/nginx\/html;         }     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  , \u0433\u0434\u0435 <strong>domain.tld<\/strong> \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u0434\u043e\u043c\u0435\u043d \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0430\u0439\u0442\u0430. <\/p>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u0430 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0447\u0435\u043c\u0443 \u043f\u0440\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043d\u043e\u0432\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437. <\/p>\n<p>  \u0412 \u043a\u043e\u0440\u043d\u0435 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u0433\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f <strong>Dockerfile<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 NGINX \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 \u043d\u0435\u0433\u043e \u0432\u0430\u0448 \u0441\u0430\u0439\u0442 \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 <strong>html<\/strong> \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e NGINX \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 <strong>conf<\/strong>.<\/p>\n<pre><code class=\"xml\">FROM nginx  MAINTAINER Yuri Trukhin &quot;trukhinyuri@infoboxcloud.com&quot;  COPY conf\/nginx.conf \/etc\/nginx\/nginx.conf COPY html\/ \/usr\/share\/nginx\/html <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e <strong>Dockerfile<\/strong> \u0431\u044b\u043b\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043d\u043e <a href=\"https:\/\/infoboxcloud.ru\/community\/blog\/iaas\/200.html\">\u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a>.<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0432 \u043a\u043e\u0440\u043d\u0435 \u043f\u0430\u043f\u043a\u0438 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u0433\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b <strong>docker-compose.yml<\/strong> \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c:  <\/p>\n<pre><code class=\"xml\">sitename:   build: .   ports:   - 80:80   restart: always <\/code><\/pre>\n<p>  \u0412 \u043d\u0435\u043c \u0441\u043a\u0430\u0437\u0430\u043d\u043e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 <strong>sitename<\/strong>, \u0441\u043f\u0435\u0440\u0432\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0432 \u0435\u0433\u043e \u0438\u0437 <strong>Dockerfile<\/strong> \u0432 \u0442\u043e\u0439 \u0436\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438. \u041f\u043e\u0440\u0442 80 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043d\u0430 \u043f\u043e\u0440\u0442 80 \u0445\u043e\u0441\u0442\u0430. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0430\u0434\u0435\u043d\u0438\u044f NGINX \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e.<\/p>\n<p>  \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e Compose \u0431\u044b\u043b\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043d\u043e <a href=\"https:\/\/infoboxcloud.ru\/community\/blog\/iaas\/306.html\">\u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a>.<br \/>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0441\u0430\u0439\u0442 \u0438\u043b\u0438 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 nginx \u2013 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u043e\u0431\u0440\u0430\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439  <\/p>\n<pre><code class=\"bash\">docker-compose build <\/code><\/pre>\n<p>  \u0418 \u0437\u0430\u0442\u0435\u043c \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0438\u0442\u0435 \u043e\u0431\u0440\u0430\u0437 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440:  <\/p>\n<pre><code class=\"bash\">docker-compose up -d <\/code><\/pre>\n<p>  \u041d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0432\u043e\u043b\u043d\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u041e\u0434\u043d\u0430\u0436\u0434\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0435 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0441 Docker \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435.<\/p>\n<p>  \u0414\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0439 \u0438\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0438 \u0443\u0434\u0430\u043b\u0438\u0442\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440, \u0442.\u043a. \u043e\u043d \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u043e\u0440\u0442 80 \u043d\u0430 \u0445\u043e\u0441\u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f. <\/p>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435:   <\/p>\n<pre><code class=\"bash\">docker ps <\/code><\/pre>\n<p>  \u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430 container_id.<br \/>  \u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:  <\/p>\n<pre><code class=\"bash\">docker stop bc88ee61a933 <\/code><\/pre>\n<p>  , \u0433\u0434\u0435 \u0432\u043c\u0435\u0441\u0442\u043e bc88ee61a933 \u0432\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0432\u0430\u0448 container_id.<br \/>  \u0423\u0434\u0430\u043b\u0438\u0442\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440:  <\/p>\n<pre><code class=\"bash\">docker rm bc88ee61a933 <\/code><\/pre>\n<p>  , \u0433\u0434\u0435 \u0432\u043c\u0435\u0441\u0442\u043e bc88ee61a933 \u0432\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0432\u0430\u0448 container_id.<\/p>\n<h4><b>\u0420\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0440\u0435\u0432\u0435\u0440\u0441-\u043f\u0440\u043e\u043a\u0441\u0438<\/b><\/h4>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043c\u044b \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0434\u043e\u043c\u0435\u043d\u0430\u043c\u0438 \u0438 \u0440\u0435\u0432\u0435\u0440\u0441-\u043f\u0440\u043e\u043a\u0441\u0438. \u0414\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0430 ip\u2013\u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432\u0430\u0448\u0438 \u0434\u043e\u043c\u0435\u043d\u044b \u0432 DNS:  <\/p>\n<ul>\n<li><strong>\u0410-\u0437\u0430\u043f\u0438\u0441\u044c domain1.tld<\/strong> \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 IP\u2013\u0430\u0434\u0440\u0435\u0441 \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430. domain1.tld \u2013 \u0434\u043e\u043c\u0435\u043d \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430.<\/li>\n<li><strong>\u0410-\u0437\u0430\u043f\u0438\u0441\u044c domain2.tld<\/strong> \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 IP\u2013\u0430\u0434\u0440\u0435\u0441 \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430. domain2.tld \u2013 \u0434\u043e\u043c\u0435\u043d \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430.<\/li>\n<\/ul>\n<p>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 ip\u2013\u0430\u0434\u0440\u0435\u0441\u0430 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 <a href=\"https:\/\/panel.infobox.ru\">\u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f<\/a> InfoboxCloud.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/infoboxcloud.ru\/community\/uploads\/images\/00\/00\/01\/2015\/08\/21\/d6b7bb.jpg\" width=\"800\"\/><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0434\u043e\u043c\u0435\u043d\u043e\u0432<\/b><\/p>\n<div class=\"spoiler_text\">\n<h5><b>\u0412\u0430\u0440\u0438\u0430\u043d\u0442 1. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 hosts<\/b><\/h5>\n<p>  \u042d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430.<\/p>\n<p>  <strong>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u043e \u0434\u043e\u043c\u0435\u043d\u0430\u0445 \u0432 \u0444\u0430\u0439\u043b hosts \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430<\/strong>. <br \/>  \u0412 OS X \u0438 Linux \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0438 \u043c\u043e\u0436\u043d\u043e \u0432 \u0444\u0430\u0439\u043b <strong>\/etc\/hosts<\/strong>.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/infoboxcloud.ru\/community\/uploads\/images\/00\/00\/01\/2015\/08\/21\/662f23.jpg\" width=\"300\"\/><\/p>\n<p>  \u0412 Windows \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0431\u043b\u043e\u043a\u043d\u043e\u0442 \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u043f\u043e\u043b\u0435 \u043f\u043e\u0438\u0441\u043a\u0430 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 Notepad \u0438\u043b\u0438 \u00ab\u0411\u043b\u043e\u043a\u043d\u043e\u0442\u00bb (\u0432 \u0440\u0443\u0441\u0441\u043a\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Windows) \u0438 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0443\u043d\u043a\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/infoboxcloud.ru\/community\/uploads\/images\/00\/00\/01\/2015\/08\/21\/716718.jpg\" width=\"400\"\/><\/p>\n<p>  \u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0444\u0430\u0439\u043b <strong>C:\\Windows\\System32\\drivers\\etc\\hosts<\/strong>. \u0415\u0441\u043b\u0438 \u0432 \u0431\u043b\u043e\u043a\u043d\u043e\u0442\u0435 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u0432\u0438\u0434\u0435\u043d \u2014 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u044f\u0434\u043e\u043c \u0441 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u00ab\u041e\u0442\u043a\u0440\u044b\u0442\u044c\u00bb \u0442\u0438\u043f \u0444\u0430\u0439\u043b\u043e\u0432 \u00ab\u0412\u0441\u0435 \u0444\u0430\u0439\u043b\u044b\u00bb.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/infoboxcloud.ru\/community\/uploads\/images\/00\/00\/01\/2015\/08\/21\/e409ee.jpg\" width=\"800\"\/><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f. \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 ip\u2013\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441\u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438\u0437 <a href=\"https:\/\/panel.infobox.ru\">\u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f<\/a>.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/infoboxcloud.ru\/community\/uploads\/images\/00\/00\/01\/2015\/08\/21\/2828da.jpg\" width=\"800\"\/><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0442\u0435\u0441\u0442\u043e\u0432 \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u044d\u0442\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 hosts.<\/p>\n<h5>\u0412\u0430\u0440\u0438\u0430\u043d\u0442 2. \u041f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0438\u0442\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043e\u043c\u0435\u043d\u044b<\/h5>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e <a href=\"http:\/\/infobox.ru\/domains\/\">\u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0443\u0442<\/a>.  <\/div>\n<\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u0441\u044c \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0441 Docker \u0432 InfoboxCloud \u043f\u043e SSH.<br \/>  \u041a\u043b\u043e\u043d\u0438\u0440\u0443\u0439\u0442\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0434\u043b\u044f 2\u0445 \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u043e\u043c \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438.  <\/p>\n<pre><code class=\"bash\">cd ~ <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">git clone https:\/\/github.com\/InfoboxHosting\/DockerNginxSimpleBalancer.git <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/infoboxcloud.ru\/community\/uploads\/images\/00\/00\/01\/2015\/08\/21\/1cda85.jpg\" width=\"500\"\/><\/p>\n<p>  \u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u0433\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430:  <\/p>\n<pre><code class=\"bash\">cd ~\/DockerNginxSimpleBalancer\/balancer <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 \u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:  <\/p>\n<pre><code class=\"bash\">docker-compose build <\/code><\/pre>\n<p>  \u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0438\u0442\u0435 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u043e\u0431\u0440\u0430\u0437\u044b:  <\/p>\n<pre><code class=\"bash\">docker-compose up -d <\/code><\/pre>\n<p>  <em>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0444\u0430\u0439\u043b\u044b docker-compose.yml \u0432 \u043f\u0430\u043f\u043a\u0430\u0445 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u043e\u0432 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f.<\/em><\/p>\n<p>  \u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0434\u043e\u043c\u0435\u043d \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/infoboxcloud.ru\/community\/uploads\/images\/00\/00\/01\/2015\/08\/21\/e56e42.jpg\" width=\"400\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435, \u0447\u0442\u043e \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0430\u0439\u0442:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/infoboxcloud.ru\/community\/uploads\/images\/00\/00\/01\/2015\/08\/21\/4dc888.jpg\" width=\"400\"\/><\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0441\u0430\u0439\u0442\u044b \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u043d\u0435 \u0441 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c domain1.com \u0438 domain2.com \u0432 \u0432\u0430\u0448\u0438\u0445 <strong>\/etc\/hosts<\/strong>, \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0444\u0430\u0439\u043b <strong>~\/DockerNginxSimpleBalancer\/balancer\/conf\/nginx.conf<\/strong>:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">nginx.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">user www-data; worker_processes 1; pid \/run\/nginx.pid;  events {     worker_connections 4086;     use epoll;     multi_accept on; }  http {     sendfile on;     tcp_nopush on;     tcp_nodelay on;     keepalive_timeout 65;     keepalive_requests 1000;     types_hash_max_size 2048;      include \/etc\/nginx\/mime.types;     default_type application\/octet-stream;      access_log \/var\/log\/nginx\/access.log;     error_log \/var\/log\/nginx\/error.log;      gzip on;     gzip_min_length 10240;     gzip_proxied expired no-cache no-store private auth;     gzip_types text\/plain text\/css text\/xml text\/javascript application\/x-javascript application\/xml;     gzip_disable &quot;msie6&quot;;      include \/etc\/nginx\/conf.d\/*.conf;     include \/etc\/nginx\/sites-enabled\/*;      server {         listen 80;         server_name domain1.com  www.domain1.com;          location \/ {             proxy_set_header Host $host;             proxy_set_header X-Real-IP $remote_addr;             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;             proxy_pass http:\/\/frontend1:80;         }     }     server {         listen 80;         server_name domain2.com  www.domain2.com;          location \/ {             proxy_set_header Host $host;             proxy_set_header X-Real-IP $remote_addr;             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;             proxy_pass http:\/\/frontend2:80;         }     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0417\u0430\u043c\u0435\u043d\u0438\u0442\u0435 domain1.com \u0438 domain2.com \u043d\u0430 \u0430\u0434\u0440\u0435\u0441\u0430 \u0432\u0430\u0448\u0438\u0445 \u0441\u0430\u0439\u0442\u043e\u0432, \u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0435\u0440\u0438\u0442\u0435 \u043e\u0431\u0440\u0430\u0437 \u0438 \u043f\u0435\u0440\u0435\u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0438\u0442\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440:  <\/p>\n<pre><code class=\"bash\">cd ~\/DockerNginxSimpleBalancer\/balancer <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">docker-compose build <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">docker-compose up -d <\/code><\/pre>\n<h4><b>\u0420\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0433\u0435\u043e\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0441\u0430\u0439\u0442\u043e\u0432<\/b><\/h4>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043f\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0441 docker \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u0440\u0435\u0433\u0438\u043e\u043d\u043e\u0432 InfoboxCloud: \u041c\u043e\u0441\u043a\u0432\u0430, \u0421\u0430\u043d\u043a\u0442-\u041f\u0435\u0442\u0435\u0440\u0431\u0443\u0440\u0433, \u0410\u043c\u0441\u0442\u0435\u0440\u0434\u0430\u043c \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u00ab\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f\u00bb \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 git \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:  <\/p>\n<pre><code class=\"bash\">yum install -y git <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u0430\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u0433\u0438\u043e\u043d\u044b \u043e\u0431\u043b\u0430\u043a\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\u0412 <a href=\"https:\/\/panel.infobox.ru\">\u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f<\/a> \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u00ab\u0417\u0430\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0443\u0441\u043b\u0443\u0433\u0443\u00bb.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/infoboxcloud.ru\/community\/uploads\/images\/00\/00\/01\/2015\/08\/21\/630843.jpg\" width=\"800\"\/><\/p>\n<p>  \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0443\u0441\u043b\u0443\u0433\u0443 \u00ab\u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u044b\u00bb.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/infoboxcloud.ru\/community\/uploads\/images\/00\/00\/01\/2015\/08\/21\/ad7fd1.jpg\" width=\"400\"\/><\/p>\n<p>  \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043d\u0443\u0436\u043d\u044b\u0439 \u0440\u0435\u0433\u0438\u043e\u043d \u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u0430\u043a\u0430\u0437\u0430 \u0434\u043e \u043a\u043e\u043d\u0446\u0430.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/infoboxcloud.ru\/community\/uploads\/images\/00\/00\/01\/2015\/08\/21\/c1fd00.jpg\"\/><\/p>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u0433\u0438\u043e\u043d\u043e\u0432 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, \u043d\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u0441\u0447\u0435\u0442\u0443 \u0431\u044b\u043b\u043e \u0431\u043e\u043b\u0435\u0435 500 \u0440\u0443\u0431\u043b\u0435\u0439.  <\/div>\n<\/div>\n<p>  \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0440\u0435\u0433\u0438\u043e\u043d\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0432 \u043f\u0440\u0430\u0432\u043e\u043c \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0443\u0433\u043b\u0443 \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u043c\u0435\u043d\u044e.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/infoboxcloud.ru\/community\/uploads\/images\/00\/00\/01\/2015\/08\/21\/d6a861.jpg\" width=\"800\"\/><\/p>\n<p>  \u0414\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0430 ip\u2013\u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432\u0430\u0448\u0438 \u0434\u043e\u043c\u0435\u043d\u044b \u0432 DNS:  <\/p>\n<ul>\n<li><strong>3 \u0437\u0430\u043f\u0438\u0441\u0438 A \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430<\/strong>, \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 \u041c\u043e\u0441\u043a\u0432\u0435, \u0410\u043c\u0441\u0442\u0435\u0440\u0434\u0430\u043c\u0435 \u0438 \u0421\u0430\u043d\u043a\u0442-\u041f\u0435\u0442\u0435\u0440\u0431\u0443\u0440\u0433\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/li>\n<li><strong>3 \u0437\u0430\u043f\u0438\u0441\u0438 A \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430<\/strong>, \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 \u041c\u043e\u0441\u043a\u0432\u0435, \u0410\u043c\u0441\u0442\u0435\u0440\u0434\u0430\u043c\u0435 \u0438 \u0421\u0430\u043d\u043a\u0442-\u041f\u0435\u0442\u0435\u0440\u0431\u0443\u0440\u0433\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/li>\n<li>\u0437\u0430\u043f\u0438\u0441\u044c \u0410 \u0432\u0438\u0434\u0430 <strong>spb.<\/strong>domain.com, <strong>\u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0443\u044e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 \u0421\u0430\u043d\u043a\u0442-\u041f\u0435\u0442\u0435\u0440\u0431\u0443\u0440\u0433\u0435<\/strong>. \u0412\u043c\u0435\u0441\u0442\u043e domain.com \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0448 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0439 \u0434\u043e\u043c\u0435\u043d.<\/li>\n<li>\u0437\u0430\u043f\u0438\u0441\u044c \u0410 \u0432\u0438\u0434\u0430 <strong>msk.<\/strong>domain.com, <strong>\u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0443\u044e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 \u041c\u043e\u0441\u043a\u0432\u0435<\/strong>. \u0412\u043c\u0435\u0441\u0442\u043e domain.com \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0448 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0439 \u0434\u043e\u043c\u0435\u043d.<\/li>\n<li>\u0437\u0430\u043f\u0438\u0441\u044c \u0410 \u0432\u0438\u0434\u0430 <strong>ams.<\/strong>domain.com, <strong>\u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0443\u044e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 \u0410\u043c\u0441\u0442\u0435\u0440\u0434\u0430\u043c\u0435<\/strong>. \u0412\u043c\u0435\u0441\u0442\u043e domain.com \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0448 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0439 \u0434\u043e\u043c\u0435\u043d.<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/infoboxcloud.ru\/community\/uploads\/images\/00\/00\/01\/2015\/08\/21\/0d67f2.jpg\" width=\"800\"\/><\/p>\n<p>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 ip\u2013\u0430\u0434\u0440\u0435\u0441\u0430 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 <a href=\"https:\/\/panel.infobox.ru\">\u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f<\/a> InfoboxCloud.<\/p>\n<p>  \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432:  <\/p>\n<pre><code class=\"bash\">git clone https:\/\/github.com\/InfoboxHosting\/DockerNginxGeoRedundantBalancer.git <\/code><\/pre>\n<p>  \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0444\u0430\u0439\u043b <strong>~\/DockerNginxGeoRedundantBalancer\/balancer\/conf\/nginx.conf<\/strong> \u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435 <strong>domain1.com<\/strong> \u043d\u0430 \u0438\u043c\u044f \u0434\u043e\u043c\u0435\u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430, <strong>domain2.com<\/strong> \u043d\u0430 \u0438\u043c\u044f \u0434\u043e\u043c\u0435\u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430, <strong>domain.com<\/strong> \u043d\u0430 \u0438\u043c\u044f \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430.<\/p>\n<p>  \u0412\u043c\u0435\u0441\u0442\u043e \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <strong>\u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432<\/strong>:  <\/p>\n<pre><code class=\"bash\">bash ~\/DockerNginxGeoRedundantBalancer\/rename.sh domain.com domain1.com domain2.com <\/code><\/pre>\n<p>  , \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u043c\u0435\u0441\u0442\u043e domain.com \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u043c\u044f \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430, \u0432\u043c\u0435\u0441\u0442\u043e domain1.com \u2013 \u0438\u043c\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430, domain2.com \u2013 \u0438\u043c\u044f \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 nginx.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">user www-data; worker_processes 1; pid \/run\/nginx.pid;  events {     worker_connections 4086;     use epoll;     multi_accept on; }  http {     sendfile on;     tcp_nopush on;     tcp_nodelay on;     keepalive_timeout 65;     keepalive_requests 1000;     types_hash_max_size 2048;      include \/etc\/nginx\/mime.types;     default_type application\/octet-stream;      access_log \/var\/log\/nginx\/access.log;     error_log \/var\/log\/nginx\/error.log;      gzip on;     gzip_min_length 10240;     gzip_proxied expired no-cache no-store private auth;     gzip_types text\/plain text\/css text\/xml text\/javascript application\/x-javascript application\/xml;     gzip_disable &quot;msie6&quot;;      include \/etc\/nginx\/conf.d\/*.conf;     include \/etc\/nginx\/sites-enabled\/*;      upstream frontend1  {         #!!!replace domain.com         #!!!remove backup word in your location \t      server spb.domain.com:8000 backup;         server msk.domain.com:8000 backup;         server ams.domain.com:8000 backup; \t  }     upstream frontend2  {         #!!!replace domain.com         #!!!remove backup word in your location         server spb.domain.com:8001 backup;         server msk.domain.com:8001 backup;         server ams.domain.com:8001 backup; \t  }      server {         listen 80;         #!!!replace domain1.com         server_name domain1.com  www.domain1.com;          location \/ {             proxy_set_header Host $host;             proxy_set_header X-Real-IP $remote_addr;             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;             proxy_pass http:\/\/frontend1;         }     }     server {         listen 80;         #!!!replace domain2.com         server_name domain2.com  www.domain2.com;          location \/ {             proxy_set_header Host $host;             proxy_set_header X-Real-IP $remote_addr;             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;             proxy_pass http:\/\/frontend2;         }     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">nginx.conf \u043f\u043e\u0441\u043b\u0435 \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0410\u043c\u0441\u0442\u0435\u0440\u0434\u0430\u043c\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">user www-data; worker_processes 1; pid \/run\/nginx.pid;  events {     worker_connections 4086;     use epoll;     multi_accept on; }  http {     sendfile on;     tcp_nopush on;     tcp_nodelay on;     keepalive_timeout 65;     keepalive_requests 1000;     types_hash_max_size 2048;      include \/etc\/nginx\/mime.types;     default_type application\/octet-stream;      access_log \/var\/log\/nginx\/access.log;     error_log \/var\/log\/nginx\/error.log;      gzip on;     gzip_min_length 10240;     gzip_proxied expired no-cache no-store private auth;     gzip_types text\/plain text\/css text\/xml text\/javascript application\/x-javascript application\/xml;     gzip_disable &quot;msie6&quot;;      include \/etc\/nginx\/conf.d\/*.conf;     include \/etc\/nginx\/sites-enabled\/*;      upstream frontend1  {         #!!!replace domain.com \t      server spb.plugndo.com:8000 backup;         server msk.plugndo.com:8000 backup;         server ams.plugndo.com:8000; \t  }     upstream frontend2  {         #!!!replace domain.com         server spb.plugndo.com:8001 backup;         server msk.plugndo.com:8001 backup;         server ams.plugndo.com:8001; \t  }      server {         listen 80;         #!!!replace domain1.com         server_name site1.plugndo.com  www.site1.plugndo.com;          location \/ {             proxy_set_header Host $host;             proxy_set_header X-Real-IP $remote_addr;             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;             proxy_pass http:\/\/frontend1;         }     }     server {         listen 80;         #!!!replace domain1.com         server_name site2.plugndo.com  www.site2.plugndo.com;          location \/ {             proxy_set_header Host $host;             proxy_set_header X-Real-IP $remote_addr;             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;             proxy_pass http:\/\/frontend2;         }     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<div class=\"spoiler\"><b class=\"spoiler_title\">nginx.conf \u043f\u043e\u0441\u043b\u0435 \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0421\u0430\u043d\u043a\u0442-\u041f\u0435\u0442\u0435\u0440\u0431\u0443\u0440\u0433\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">user www-data; worker_processes 1; pid \/run\/nginx.pid;  events {     worker_connections 4086;     use epoll;     multi_accept on; }  http {     sendfile on;     tcp_nopush on;     tcp_nodelay on;     keepalive_timeout 65;     keepalive_requests 1000;     types_hash_max_size 2048;      include \/etc\/nginx\/mime.types;     default_type application\/octet-stream;      access_log \/var\/log\/nginx\/access.log;     error_log \/var\/log\/nginx\/error.log;      gzip on;     gzip_min_length 10240;     gzip_proxied expired no-cache no-store private auth;     gzip_types text\/plain text\/css text\/xml text\/javascript application\/x-javascript application\/xml;     gzip_disable &quot;msie6&quot;;      include \/etc\/nginx\/conf.d\/*.conf;     include \/etc\/nginx\/sites-enabled\/*;      upstream frontend1  {         #!!!replace domain.com \tserver spb.plugndo.com:8000;         server msk.plugndo.com:8000 backup;         server ams.plugndo.com:8000 backup; \t  }     upstream frontend2  {         #!!!replace domain.com         server spb.plugndo.com:8001;         server msk.plugndo.com:8001 backup;         server ams.plugndo.com:8001 backup; \t  }      server {         listen 80;         #!!!replace domain1.com         server_name site1.plugndo.com  www.site1.plugndo.com;          location \/ {             proxy_set_header Host $host;             proxy_set_header X-Real-IP $remote_addr;             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;             proxy_pass http:\/\/frontend1;         }     }     server {         listen 80;         #!!!replace domain1.com         server_name site2.plugndo.com  www.site2.plugndo.com;          location \/ {             proxy_set_header Host $host;             proxy_set_header X-Real-IP $remote_addr;             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;             proxy_pass http:\/\/frontend2;         }     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<div class=\"spoiler\"><b class=\"spoiler_title\">nginx.conf \u043f\u043e\u0441\u043b\u0435 \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u041c\u043e\u0441\u043a\u0432\u044b<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">user www-data; worker_processes 1; pid \/run\/nginx.pid;  events {     worker_connections 4086;     use epoll;     multi_accept on; }  http {     sendfile on;     tcp_nopush on;     tcp_nodelay on;     keepalive_timeout 65;     keepalive_requests 1000;     types_hash_max_size 2048;      include \/etc\/nginx\/mime.types;     default_type application\/octet-stream;      access_log \/var\/log\/nginx\/access.log;     error_log \/var\/log\/nginx\/error.log;      gzip on;     gzip_min_length 10240;     gzip_proxied expired no-cache no-store private auth;     gzip_types text\/plain text\/css text\/xml text\/javascript application\/x-javascript application\/xml;     gzip_disable &quot;msie6&quot;;      include \/etc\/nginx\/conf.d\/*.conf;     include \/etc\/nginx\/sites-enabled\/*;      upstream frontend1  {         #!!!replace domain.com \tserver spb.plugndo.com:8000 backup;         server msk.plugndo.com:8000;         server ams.plugndo.com:8000 backup; \t  }     upstream frontend2  {         #!!!replace domain.com         server spb.plugndo.com:8001 backup;         server msk.plugndo.com:8001;         server ams.plugndo.com:8001 backup; \t  }      server {         listen 80;         #!!!replace domain1.com         server_name site1.plugndo.com  www.site1.plugndo.com;          location \/ {             proxy_set_header Host $host;             proxy_set_header X-Real-IP $remote_addr;             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;             proxy_pass http:\/\/frontend1;         }     }     server {         listen 80;         #!!!replace domain1.com         server_name site2.plugndo.com  www.site2.plugndo.com;          location \/ {             proxy_set_header Host $host;             proxy_set_header X-Real-IP $remote_addr;             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;             proxy_pass http:\/\/frontend2;         }     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043b\u044f \u041c\u043e\u0441\u043a\u0432\u044b \u043f\u0435\u0440\u0435\u0434\u0438\u0442\u0435 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u043f\u0430\u043f\u043a\u0443:  <\/p>\n<pre><code class=\"bash\">cd DockerNginxGeoRedundantBalancer\/balancerMSK\/ <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0410\u043c\u0441\u0442\u0435\u0440\u0434\u0430\u043c\u0430 \u043f\u0435\u0440\u0435\u0434\u0438\u0442\u0435 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u043f\u0430\u043f\u043a\u0443:  <\/p>\n<pre><code class=\"bash\">cd DockerNginxGeoRedundantBalancer\/balancerAMS\/ <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0421\u0430\u043d\u043a\u0442-\u041f\u0435\u0442\u0435\u0440\u0431\u0443\u0440\u0433\u0430:  <\/p>\n<pre><code class=\"bash\">cd DockerNginxGeoRedundantBalancer\/balancerSPB\/ <\/code><\/pre>\n<p>  \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b   <\/p>\n<pre><code class=\"bash\">docker-compose build <\/code><\/pre>\n<p>  \u0438  <\/p>\n<pre><code class=\"bash\">docker-compose up -d <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0439\u0442\u0438 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u0441\u0430\u0439\u0442\u043e\u0432 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0438\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/infoboxcloud.ru\/community\/uploads\/images\/00\/00\/01\/2015\/08\/21\/cf797b.jpg\" width=\"400\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/infoboxcloud.ru\/community\/uploads\/images\/00\/00\/01\/2015\/08\/21\/65a827.jpg\" width=\"400\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0438\u0437 \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 \u043b\u044e\u0431\u043e\u043c \u0438\u0437 \u0440\u0435\u0433\u0438\u043e\u043d\u043e\u0432. \u0421\u0430\u0439\u0442\u044b \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b.<br \/>  \u0412\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0440\u0435\u0433\u0438\u043e\u043d\u0435. \u0421\u0430\u0439\u0442\u044b \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b. <\/p>\n<p>  \u041f\u043e\u043a\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0445\u043e\u0442\u044c \u043e\u0434\u0438\u043d \u0441\u0435\u0440\u0432\u0435\u0440 \u2014 \u0441\u0430\u0439\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c. \u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u043e\u043f\u0430\u043b \u043d\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u0432\u0441\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u044b \u0434\u0435\u043b\u0430\u044e\u0442 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0441\u043b\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438\u0437 DNS. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434 \u0441\u0430\u0439\u0442 \u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u0421\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u0441\u0430\u0439\u0442\u043e\u0432 \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0440\u0435\u0433\u0438\u043e\u043d\u0430\u0445 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Ansible.<br \/>  <a href=\"https:\/\/infoboxcloud.ru\/community\/blog\/iaas\/226.html\">\u0427\u0430\u0441\u0442\u044c 1<\/a>.<br \/>  <a href=\"https:\/\/infoboxcloud.ru\/community\/blog\/iaas\/236.html\">\u0427\u0430\u0441\u0442\u044c 2<\/a>.<br \/>  <a href=\"https:\/\/infoboxcloud.ru\/community\/blog\/iaas\/242.html\">\u0427\u0430\u0441\u0442\u044c 3<\/a>.<br \/>  <a href=\"https:\/\/infoboxcloud.ru\/community\/blog\/iaas\/244.html\">\u0427\u0430\u0441\u0442\u044c 4<\/a>.<br \/>  <a href=\"https:\/\/infoboxcloud.ru\/community\/blog\/iaas\/246.html\">\u0427\u0430\u0441\u0442\u044c 5<\/a>.<\/p>\n<h4><b>\u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e InfoboxCloud \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e?<\/b><\/h4>\n<p>  <a href=\"mailto:trukhinyuri@infoboxcloud.ru\">\u041f\u0440\u0438\u0448\u043b\u0438\u0442\u0435 \u043d\u0430\u043c<\/a> \u0432\u0430\u0448 \u0430\u0434\u0440\u0435\u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b \u0438 \u0424\u0418\u041e \u043d\u0430 <a href=\"http:\/\/trukhinyuri@infoboxcloud.com\">trukhinyuri@infoboxcloud.com<\/a>, \u0432 \u043e\u0442\u0432\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0440\u0435\u0433\u0438\u043e\u043d \u043e\u0431\u043b\u0430\u043a\u0430 \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 15 \u0434\u043d\u0435\u0439, \u0434\u0430\u043b\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u043e\u043b\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043e\u0431\u043b\u0430\u043a\u0430. \u0417\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0443\u044e \u043f\u0440\u043e\u0431\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0434\u043e 5 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f 2015 \u0433\u043e\u0434\u0430.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0438\u043b\u0438 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f, <a href=\"mailto:trukhinyuri@infoboxcloud.ru\">\u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043d\u0430\u043c<\/a> \u0438 \u043c\u044b \u0441 \u0440\u0430\u0434\u043e\u0441\u0442\u044c\u044e \u043e\u0442\u0432\u0435\u0442\u0438\u043c.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435, \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043d\u0430\u043c \u0432 <a href=\"https:\/\/infoboxcloud.ru\/community\/blog\/iaas\/320.html\">\u0421\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0435<\/a>.<\/p>\n<p>  \u0423\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f NGINX \u0438 Docker \u0432 <a href=\"http:\/\/infoboxcloud.ru\">InfoboxCloud<\/a>!     \t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/265231\/\"> http:\/\/habrahabr.ru\/post\/265231\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u0417\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0433\u043e\u0434 \u0432 Docker Hub \u0441\u0442\u0430\u043b\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0443\u0436\u0435 \u0431\u043e\u043b\u0435\u0435 100 000 \u043e\u0431\u0440\u0430\u0437\u043e\u0432, \u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u043b\u0438\u0441\u044c \u043e\u0431\u0440\u0430\u0437\u044b \u0441 Docker Hub \u0443\u0436\u0435 \u0431\u043e\u043b\u0435\u0435 300 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u0432 \u0440\u0430\u0437. \u0418\u0437 \u043d\u0438\u0445 \u0431\u043e\u043b\u0435\u0435 20 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u043a \u043f\u0440\u0438\u0448\u043b\u0438\u0441\u044c \u043d\u0430 70 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 Docker, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a Oracle, CentOS \u0438 NGINX.<\/p>\n<p>  NGINX \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 40% \u0441\u0430\u043c\u044b\u0445 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0441\u0430\u0439\u0442\u043e\u0432 \u0432 \u043c\u0438\u0440\u0435, \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u043a \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440, \u043d\u043e \u0438 \u043a\u0430\u043a \u0440\u0435\u0432\u0435\u0440\u0441-\u043f\u0440\u043e\u043a\u0441\u0438 \u0441\u0435\u0440\u0432\u0435\u0440, \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438 HTTP \u043a\u044d\u0448. \u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 NGINX \u0431\u044b\u043b \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d 3.4 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430 \u0440\u0430\u0437. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/367\/5e3\/329\/3675e3329e95abf27fcf422ccbedc186.png\" width=\"400\"\/><\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0432\u044b \u0443\u0437\u043d\u0430\u0435\u0442\u0435:  <\/p>\n<ul>\n<li>\u043a\u0430\u043a \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Docker-\u043e\u0431\u0440\u0430\u0437 \u0441 NGINX.<\/li>\n<li>\u043a\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0440\u0435\u0432\u0435\u0440\u0441-\u043f\u0440\u043e\u043a\u0441\u0438 \u043d\u0430 NGINX \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0430\u0439\u0442\u043e\u0432 \u0432 Docker<\/li>\n<li>\u043a\u0430\u043a \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0433\u0435\u043e\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0443\u044e \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044e, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0443\u044e \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0430\u0439\u0442\u043e\u0432 \u0438 \u0440\u0435\u0432\u0435\u0440\u0441-\u043f\u0440\u043e\u043a\u0441\u0438 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 3\u0445 \u0440\u0435\u0433\u0438\u043e\u043d\u043e\u0432 InfoboxCloud.<\/li>\n<\/ul>\n<p>  \u0415\u0441\u043b\u0438 \u0440\u0430\u043d\u044c\u0448\u0435 \u0432\u044b \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 Docker, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043a \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u044e:<br \/>  <a href=\"https:\/\/infoboxcloud.ru\/community\/blog\/iaas\/149.html\">\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Docker \u0438 \u043d\u0435 \u0432\u043e\u043b\u043d\u0443\u0435\u043c\u0441\u044f \u043e vendor-lock<\/a><br \/>  <a href=\"https:\/\/infoboxcloud.ru\/community\/blog\/iaas\/200.html\">\u041f\u043e\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0441\u044f \u0432 Docker: Dockerfile \u0438 \u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0446\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438<\/a><br \/>  <a href=\"https:\/\/infoboxcloud.ru\/community\/blog\/iaas\/306.html\">\u041e\u0431\u0437\u043e\u0440 \u043d\u043e\u0432\u0448\u0435\u0441\u0442\u0432 Docker Engine \u0441 1.0 \u0434\u043e 1.8. \u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 Docker Compose<\/a><\/p>\n<p>  \u0412 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u044b \u0440\u0430\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0431\u043d\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 <a href=\"https:\/\/infoboxcloud.ru\">InfoboxCloud<\/a> \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-264053","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/264053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=264053"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/264053\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=264053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=264053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=264053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}