{"id":296120,"date":"2019-12-20T15:00:08","date_gmt":"2019-12-20T15:00:08","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=296120"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=296120","title":{"rendered":"SSL \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0434\u043b\u044f Docker web-app"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/481362\/\">\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0432\u0430\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f SSL \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u043d\u0430 Docker, \u0442.\u043a. \u0432 \u0440\u0443\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u2014 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/1b8\/49c\/535\/1b849c535c8a9c565faeea4279827281.png\" alt=\"image\"><\/p>\n<p>  \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c.<br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  <i>\u0423 \u043d\u0430\u0441 \u0431\u044b\u043b docker v.17.05, docker-compose v.1.21, Ubuntu Server 18 \u0438 \u043f\u0438\u043d\u0442\u0430 \u0447\u0438\u0441\u0442\u043e\u0433\u043e Let&#8217;sEncrypt. \u041d\u0435 \u0442\u043e \u0447\u0442\u043e \u0431\u044b \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d \u043d\u0430 Docker. \u041d\u043e \u0435\u0441\u043b\u0438 \u043d\u0430\u0447\u0430\u043b \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c Docker, \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0442\u0440\u0443\u0434\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f.<\/i><\/p>\n<p>  \u0418\u0442\u0430\u043a \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u2014 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443 \u043d\u0430\u0441 \u0431\u044b\u043b\u0438 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 dev, \u0442.\u0435. \u0431\u0435\u0437 443 \u043f\u043e\u0440\u0442\u0430 \u0438 SSL \u0432 \u0446\u0435\u043b\u043e\u043c:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">docker-compose.yml<\/b><\/p>\n<div class=\"spoiler_text\"><code>version: '2'<br \/>  services:<br \/>   php:<br \/>   build: .\/php-fpm<br \/>   volumes:<br \/>   - .\/StomUp:\/var\/www\/StomUp<br \/>   - .\/php-fpm\/php.ini:\/usr\/local\/etc\/php\/php.ini<br \/>   depends_on:<br \/>   - mysql<br \/>   container_name: \"StomPHP\"<br \/>   web:<br \/>   image: nginx:latest<br \/>   ports:<br \/>   - \"80:80\"<br \/>   - \"443:443\"<br \/>   volumes:<br \/>   - .\/StomUp:\/var\/www\/StomUp<br \/>   - .\/nginx\/main.conf:\/etc\/nginx\/conf.d\/default.conf<br \/>   depends_on:<br \/>   - php<br \/>   mysql:<br \/>   image: mysql:5.7<br \/>   command: mysqld --sql_mode=\"\"<br \/>   environment:<br \/>   MYSQL_ROOT_PASSWORD: xxx<br \/>   ports:<br \/>   - \"3333:3306\"<br \/>  <\/code>  <\/div>\n<\/div>\n<div class=\"spoiler\"><b class=\"spoiler_title\">nginx\/main.conf<\/b><\/p>\n<div class=\"spoiler_text\"><code> server {<br \/>   listen 80;<br \/>   server_name *.stomup.ru stomup.ru;<br \/>   root \/var\/www\/StomUp\/public;<br \/>   client_max_body_size 5M;<\/p>\n<p>  location \/ {<br \/>   # try to serve file directly, fallback to index.php<br \/>   try_files $uri \/index.php$is_args$args;<br \/>   }<\/p>\n<p>  location ~ ^\/index\\.php(\/|$) {<br \/>   #fastcgi_pass unix:\/var\/run\/php7.2-fpm.sock;<br \/>   fastcgi_pass php:9000;<br \/>   fastcgi_split_path_info ^(.+\\.php)(\/.*)$;<br \/>   include fastcgi_params;<br \/>   fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;<br \/>   fastcgi_param DOCUMENT_ROOT $realpath_root;<br \/>   fastcgi_buffer_size 128k;<br \/>   fastcgi_buffers 4 256k;<br \/>   fastcgi_busy_buffers_size 256k;<br \/>   internal;<br \/>   }<\/p>\n<p>  location ~ \\.php$ {<br \/>   return 404;<br \/>   }<\/p>\n<p>  error_log \/var\/log\/nginx\/project_error.log;<br \/>   access_log \/var\/log\/nginx\/project_access.log;<br \/>  }<br \/>  <\/code>  <\/div>\n<\/div>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c SSL. \u0427\u0435\u0441\u0442\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u2014 \u0448\u0442\u0443\u0434\u0438\u0440\u043e\u0432\u0430\u043b com \u0437\u043e\u043d\u0443 \u044f \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0447\u0430\u0441\u043e\u0432 2-\u0445. \u0412\u0441\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0442\u0430\u043c \u2014 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435. \u041d\u043e \u043d\u0430 \u0442\u0435\u043a\u0443\u0448\u0435\u043c \u044d\u0442\u0430\u043f\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043d\u0430\u043c(\u0431\u0438\u0437\u043d\u0435\u0441\u0443) \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u043d\u0430\u0434\u0435\u0436\u043d\u043e \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c <b>SSL Let&#8217;sEnctypt<\/b> \u043a <b>nginx<\/b> \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0443 \u0438 \u043d\u0435 \u0431\u043e\u043b\u0435\u0435.<\/p>\n<p>  \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 <b>certbot<\/b><br \/>  <b><code>sudo apt-get install certbot<\/code><\/b><\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u043b\u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b wildcard \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430<br \/>  <b><code>sudo certbot certonly -d stomup.ru -d *.stomup.ru --manual --preferred-challenges dns<\/code><\/b><\/p>\n<p>  \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f certbot \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u043d\u0430\u043c 2 TXT \u0437\u0430\u043f\u0438\u0441\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 DNS. <br \/>  <b><code>_acme-challenge.stomup.ru TXT {\u0442\u043e\u0442\u041a\u043b\u044e\u0447\u041a\u043e\u0442\u043e\u0440\u044b\u0439\u0412\u0430\u043c\u0412\u044b\u0434\u0430\u043bCertBot}<\/code><\/b><\/p>\n<p>  \u0418 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c enter.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e certbot \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u044d\u0442\u0438\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 DNS \u0438 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0434\u043b\u044f \u0432\u0430\u0441 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b.<br \/>  <i>\u0435\u0441\u043b\u0438 \u0432\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442, \u043d\u043e <b>certbot<\/b> \u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u2014 \u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0447\u0435\u0440\u0435\u0437 5-10 \u043c\u0438\u043d\u0443\u0442<\/i><\/p>\n<p>  \u041d\u0443 \u0432\u043e\u0442 \u043c\u044b \u0438 \u0433\u043e\u0440\u0434\u044b\u0435 \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0438 Let&#8217;sEncrypt \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u043d\u0430 90 \u0434\u043d\u0435\u0439, \u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0435\u0433\u043e \u043f\u0440\u043e\u043a\u0438\u043d\u0443\u0442\u044c \u0432 Docker.<\/p>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432 docker-compose.yml, \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 nginx \u2014 \u043f\u0440\u0438\u043b\u0438\u043d\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0434\u0438\u0440\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438. <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 docker-compose.yml \u0441 SSL<\/b><\/p>\n<div class=\"spoiler_text\"><code>version: '2'<br \/>  services:<br \/>   php:<br \/>   build: .\/php-fpm<br \/>   volumes:<br \/>   - .\/StomUp:\/var\/www\/StomUp<br \/>   - \/etc\/letsencrypt\/live\/stomup.ru\/:\/etc\/letsencrypt\/live\/stomup.ru\/<br \/>   - .\/php-fpm\/php.ini:\/usr\/local\/etc\/php\/php.ini<br \/>   depends_on:<br \/>   - mysql<br \/>   container_name: \"StomPHP\"<br \/>   web:<br \/>   image: nginx:latest<br \/>   ports:<br \/>   - \"80:80\"<br \/>   - \"443:443\"<br \/>   volumes:<br \/>   - .\/StomUp:\/var\/www\/StomUp<br \/>   - \/etc\/letsencrypt\/:\/etc\/letsencrypt\/<br \/>   - .\/nginx\/main.conf:\/etc\/nginx\/conf.d\/default.conf<br \/>   depends_on:<br \/>   - php<br \/>   mysql:<br \/>   image: mysql:5.7<br \/>   command: mysqld --sql_mode=\"\"<br \/>   environment:<br \/>   MYSQL_ROOT_PASSWORD: xxx<br \/>   ports:<br \/>   - \"3333:3306\"<br \/>  <\/code>  <\/div>\n<\/div>\n<p>  \u041f\u0440\u0438\u043b\u0438\u043d\u043a\u043e\u0432\u0430\u043b\u0438? \u0421\u0443\u043f\u0435\u0440 \u2014 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c: <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433 <b>nginx<\/b> \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 <b>443<\/b> \u043f\u043e\u0440\u0442\u043e\u043c \u0438 <b>SSL<\/b> \u0432 \u0446\u0435\u043b\u043e\u043c:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433\u0430 main.conf \u0441 SSL<\/b><\/p>\n<div class=\"spoiler_text\"><code>#<br \/>  server {<br \/>   listen 443 ssl http2;<br \/>   listen [::]:443 ssl http2;<\/p>\n<p>  server_name *.stomup.ru stomup.ru;<br \/>   set $base \/var\/www\/StomUp;<br \/>   root $base\/public;<\/p>\n<p>  # SSL<br \/>   ssl_certificate \/etc\/letsencrypt\/live\/stomup.ru\/fullchain.pem;<br \/>   ssl_certificate_key \/etc\/letsencrypt\/live\/stomup.ru\/privkey.pem;<br \/>   ssl_trusted_certificate \/etc\/letsencrypt\/live\/stomup.ru\/chain.pem;<\/p>\n<p>  client_max_body_size 5M;<\/p>\n<p>  location \/ {<br \/>   # try to serve file directly, fallback to index.php<br \/>   try_files $uri \/index.php$is_args$args;<br \/>   }<\/p>\n<p>  location ~ ^\/index\\.php(\/|$) {<br \/>   #fastcgi_pass unix:\/var\/run\/php7.2-fpm.sock;<br \/>   fastcgi_pass php:9000;<br \/>   fastcgi_split_path_info ^(.+\\.php)(\/.*)$;<br \/>   include fastcgi_params;<br \/>   fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;<br \/>   fastcgi_param DOCUMENT_ROOT $realpath_root;<br \/>   fastcgi_buffer_size 128k;<br \/>   fastcgi_buffers 4 256k;<br \/>   fastcgi_busy_buffers_size 256k;<br \/>   internal;<br \/>   }<\/p>\n<p>  location ~ \\.php$ {<br \/>   return 404;<br \/>   }<\/p>\n<p>  error_log \/var\/log\/nginx\/project_error.log;<br \/>   access_log \/var\/log\/nginx\/project_access.log;<br \/>  }<\/p>\n<p>  # HTTP redirect<br \/>  server {<br \/>   listen 80;<br \/>   listen [::]:80;<\/p>\n<p>  server_name *.stomup.ru stomup.ru;<\/p>\n<p>  location \/ {<br \/>   return 301 https:\/\/stomup.ru$request_uri;<br \/>   }<br \/>  }<br \/>  <\/code>  <\/div>\n<\/div>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u0438\u0445 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0439 \u2014 \u0438\u0434\u0435\u043c \u0432 \u0434\u0438\u0440\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0441 Docker-compose, \u043f\u0438\u0448\u0435\u043c docker-compose up -d. \u0418 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c SSL. \u0414\u043e\u043b\u0436\u043d\u043e \u0432\u0441\u0435 \u0432\u0437\u043b\u0435\u0442\u0435\u0442\u044c.<\/p>\n<p>  \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0439\u0442\u0435 \u0447\u0442\u043e Let&#8217;sEnctypt \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0432\u044b\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430 90 \u0434\u043d\u0435\u0439 \u0438 \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0435\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <b><code>sudo certbot renew<\/code><\/b>, \u0430 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <b><code>docker-compose restart<\/code><\/b><\/p>\n<p>  \u041a\u0430\u043a \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u2014 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u0443\u044e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432 crontab.<\/p>\n<p>  \u041d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u044d\u0442\u043e \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f SSL \u043a Docker Web-app.<\/p>\n<p>  P.S. <br \/>  \u041f\u0440\u043e\u0448\u0443 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0432\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0447\u0442\u043e \u0432\u0441\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u2014 \u043d\u0435 \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b, \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0430\u0434\u0438\u0438 \u0433\u043b\u0443\u0431\u043e\u043a\u043e\u0433\u043e Dev, \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u0445\u043e\u0447\u0443 \u0432\u0430\u0441 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043d\u0435 \u043a\u0440\u0438\u0442\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0438- \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0435\u0449\u0435 \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437 \u0432\u0438\u0434\u043e\u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f.<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d() } } }t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>      <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/481362\/\"> https:\/\/habr.com\/ru\/post\/481362\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/481362\/\">\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0432\u0430\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f SSL \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u043d\u0430 Docker, \u0442.\u043a. \u0432 \u0440\u0443\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u2014 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/1b8\/49c\/535\/1b849c535c8a9c565faeea4279827281.png\" alt=\"image\"><\/p>\n<p>  \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c.  <\/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-296120","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/296120","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=296120"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/296120\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=296120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=296120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=296120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}