{"id":30364,"date":"2019-10-31T21:35:08","date_gmt":"2019-10-31T18:35:08","guid":{"rendered":"https:\/\/prohoster.info\/blog\/nastrojka-avtomaticheskogo-polucheniya-sertifikatov-letsencrypt-s-pomoshhyu-docker-v-linux\/"},"modified":"2019-10-31T21:35:08","modified_gmt":"2019-10-31T18:35:08","slug":"nastrojka-avtomaticheskogo-polucheniya-sertifikatov-letsencrypt-s-pomoshhyu-docker-v-linux","status":"publish","type":"post","link":"https:\/\/prohoster.info\/it\/blog\/administrirovanie\/nastrojka-avtomaticheskogo-polucheniya-sertifikatov-letsencrypt-s-pomoshhyu-docker-v-linux","title":{"rendered":"Impostazione dell'ottenimento automatico di certificati letsencrypt con docker in linux","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Recentemente ho cambiato il server virtuale e ho dovuto configurare tutto da capo. Preferisco che il sito sia accessibile tramite https e che i certificati letsencrypt siano ottenuti e rinnovati automaticamente. Questo pu\u00f2 essere realizzato utilizzando due immagini docker: nginx-proxy e nginx-proxy-companion.<\/p>\n<p><\/p>\n<p>Questa guida spiega come configurare un sito su docker, con un proxy che ottiene automaticamente <a class=\"wpil_keyword_link\" href=\"https:\/\/prohoster.info\/it\/ssl-sertifikat\/\"   title=\"Certificati SSL\" data-wpil-keyword-link=\"linked\"  data-wpil-monitor-id=\"358\">Certificati SSL<\/a>. Si utilizza un server virtuale CentOS 7.<\/p>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<p>Presumo che il server sia gi\u00e0 stato acquistato, configurato, l'accesso avvenga tramite chiave, e che sia stato installato fail2ban, ecc.<\/p>\n<p><\/p>\n<p>Per iniziare, \u00e8 necessario installare docker.<\/p>\n<p><\/p>\n<ol>\n<li>Per prima cosa \u00e8 necessario installare le dipendenze\n<pre><code class=\"bash\">$ sudo yum install -y yum-utils device-mapper-persistent-data lvm2<\/code><\/pre>\n<\/li>\n<li>Collegare il repository\n<pre><code class=\"bash\">$ sudo yum-config-manager --add-repo https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo<\/code><\/pre>\n<\/li>\n<li>Poi installare la community edition di docker\n<pre><code class=\"bash\">$ sudo yum install docker-ce docker-ce-cli containerd.io<\/code><\/pre>\n<\/li>\n<li>Aggiungere docker all'avvio automatico e avviarlo\n<pre><code class=\"bash\">$ sudo systemctl enable docker\n$ sudo systemctl start docker<\/code><\/pre>\n<\/li>\n<li>Aggiungere l'utente al gruppo docker per poter eseguire docker senza sudo\n<pre><code class=\"bash\">$ usermod -aG docker user<\/code><\/pre>\n<\/li>\n<\/ol>\n<p><\/p>\n<p>Il passo successivo consiste nell'installare docker-compose. L'utilit\u00e0 pu\u00f2 essere installata in diversi modi, ma io preferisco utilizzare il gestore pip e virtualenv per non appesantire il sistema con pacchetti superflui.<\/p>\n<p><\/p>\n<ol>\n<li>Installa pip\n<pre><code class=\"bash\">$ sudo yum install python-pip<\/code><\/pre>\n<\/li>\n<li>Installa virtualenv\n<pre><code class=\"bash\">$ pip install virtualenv<\/code><\/pre>\n<\/li>\n<li>Successivamente, \u00e8 necessario creare una cartella per il progetto e inizializzarla. La cartella per la gestione dei pacchetti sar\u00e0 chiamata ve.\n<pre><code class=\"bash\">$ mkdir docker\n$ cd docker\n$ virtualenv ve<\/code><\/pre>\n<\/li>\n<li>Per utilizzare l'ambiente virtuale, \u00e8 necessario eseguire il seguente comando nella cartella del progetto.\n<pre><code class=\"bash\">$ source ve\/bin\/activate<\/code><\/pre>\n<\/li>\n<li>\u00c8 possibile installare docker-compose.\n<pre><code class=\"bash\">pip install docker-compose<\/code><\/pre>\n<p><\/p>\n<p>Affinch\u00e9 i contenitori possano vedere l'uno l'altro, creiamo una rete. In default viene utilizzato il driver bridge.<\/p>\n<pre><code class=\"bash\">$ docker network create network<\/code><\/pre>\n<p><\/p>\n<p>Dopo, \u00e8 necessario configurare docker-compose; il proxy si trover\u00e0 nella cartella proxy e il sito di prova nella cartella test. Per esempio, utilizzo il nome di dominio example.com.<\/p>\n<pre><code class=\"bash\">$ mkdir proxy\n$ mkdir test\n$ touch proxy\/docker-compose.yml\n$ touch test\/docker-compose.yml<\/code><\/pre>\n<p><\/p>\n<p>Contenuto <strong>proxy\/docker-compose.yml<\/strong><\/p>\n<p>\n<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">version: '3'\n\nnetworks:\n  default:\n    external:\n      name: network\n\nservices:\n  nginx-proxy:\n    container_name: nginx-proxy\n    image: jwilder\/nginx-proxy\n    ports:\n      - 80:80\n      - 443:443\n    volumes:\n      - certs:\/etc\/nginx\/certs\n      - vhost.d:\/etc\/nginx\/vhost.d\n      - html:\/usr\/share\/nginx\/html\n      - \/var\/run\/docker.sock:\/tmp\/docker.sock:ro\n\n  nginx-proxy-letsencrypt:\n    container_name: nginx-proxy-letsencrypt\n    image: jrcs\/letsencrypt-nginx-proxy-companion\n    volumes: \n      - certs:\/etc\/nginx\/certs\n      - vhost.d:\/etc\/nginx\/vhost.d\n      - html:\/usr\/share\/nginx\/html\n      - \/var\/run\/docker.sock:\/var\/run\/docker.sock:ro\n    environment:\n      - NGINX_PROXY_CONTAINER=nginx-proxy\n\nvolumes:\n  certs:\n  vhost.d:\n  html:<\/code><\/pre>\n<p><\/p>\n<p>Variabile d'ambiente <strong>NGINX_PROXY_CONTAINER<\/strong> \u00e8 necessaria affinch\u00e9 il contenitore letsencrypt veda il contenitore proxy. Le cartelle \/etc\/nginx\/certs, \/etc\/nginx\/vhost.d e \/usr\/share\/nginx\/html devono essere condivise da entrambi i contenitori. Per il corretto funzionamento del contenitore letsencrypt, l'applicazione deve essere accessibile sulla porta 80 e sulla porta 443.<\/p>\n<p><\/p>\n<p>Contenuto <strong>test\/docker-compose.yml<\/strong><\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">version: '3'\n\nnetworks:\n  default:\n    external:\n      name: network\n\nservices:\n\n  nginx:\n    container_name: nginx\n    image: nginx:latest\n    environment:\n      - VIRTUAL_HOST=example.com\n      - LETSENCRYPT_HOST=example.com\n      - LETSENCRYPT_EMAIL=admin@example.com<\/code><\/pre>\n<p><\/p>\n<p>Qui le variabili d'ambiente sono necessarie affinch\u00e9 il proxy gestisca correttamente le richieste al server e richieda un certificato per il nome di dominio corretto.<\/p>\n<p><\/p>\n<p>Rimane solo da avviare docker-compose<\/p>\n<p><\/p>\n<pre><code class=\"bash\">$ cd proxy\n$ docker-compose up -d\n$ cd ..\/test\n$ docker-compose up -d<\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p>Fonte: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/445448\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041c\u0435\u043d\u044f\u043b \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u0438 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0437\u0430\u043d\u043e\u0432\u043e. \u042f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e, \u0447\u0442\u043e\u0431\u044b \u0441\u0430\u0439\u0442 \u0431\u044b\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e https \u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b letsencrypt \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438\u0441\u044c \u0438 \u043f\u0440\u043e\u0434\u043b\u0435\u0432\u0430\u043b\u0438\u0441\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u042d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f, \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0430 \u043e\u0431\u0440\u0430\u0437\u0430 docker nginx-proxy \u0438 nginx-proxy-companion. \u042d\u0442\u043e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0430\u0439\u0442 \u043d\u0430 docker, \u0441 \u043f\u0440\u043e\u043a\u0441\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 SSL \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 CentOS 7. \u042f [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-30364","post","type-post","status-publish","format-standard","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041c\u0435\u043d\u044f\u043b \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u0438 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0437\u0430\u043d\u043e\u0432\u043e. \u042f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e, \u0447\u0442\u043e\u0431\u044b \u0441\u0430\u0439\u0442 \u0431\u044b\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e https \u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b letsencrypt \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438\u0441\u044c \u0438 \u043f\u0440\u043e\u0434\u043b\u0435\u0432\u0430\u043b\u0438\u0441\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u042d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f, \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0430 \u043e\u0431\u0440\u0430\u0437\u0430 docker nginx-proxy \u0438 nginx-proxy-companion. \u042d\u0442\u043e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0430\u0439\u0442 \u043d\u0430 docker, \u0441 \u043f\u0440\u043e\u043a\u0441\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 SSL \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 CentOS 7. \u042f\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/it\/blog\/administrirovanie\/nastrojka-avtomaticheskogo-polucheniya-sertifikatov-letsencrypt-s-pomoshhyu-docker-v-linux\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"it_IT\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432 letsencrypt \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e docker \u0432 linux | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041c\u0435\u043d\u044f\u043b \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u0438 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0437\u0430\u043d\u043e\u0432\u043e. \u042f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e, \u0447\u0442\u043e\u0431\u044b \u0441\u0430\u0439\u0442 \u0431\u044b\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e https \u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b letsencrypt \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438\u0441\u044c \u0438 \u043f\u0440\u043e\u0434\u043b\u0435\u0432\u0430\u043b\u0438\u0441\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u042d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f, \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0430 \u043e\u0431\u0440\u0430\u0437\u0430 docker nginx-proxy \u0438 nginx-proxy-companion. \u042d\u0442\u043e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0430\u0439\u0442 \u043d\u0430 docker, \u0441 \u043f\u0440\u043e\u043a\u0441\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 SSL \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 CentOS 7. \u042f\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/it\/blog\/administrirovanie\/nastrojka-avtomaticheskogo-polucheniya-sertifikatov-letsencrypt-s-pomoshhyu-docker-v-linux\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T18:35:08+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T18:35:08+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Configurazione per l'ottenimento automatico dei certificati letsencrypt usando docker in linux | ProHoster","description":"Di recente ho cambiato server virtuale e ho dovuto riconfigurare tutto da capo. Preferisco che il sito sia accessibile tramite https e che i certificati letsencrypt vengano generati e rinnovati automaticamente. Questo \u00e8 possibile utilizzando due immagini docker, nginx-proxy e nginx-proxy-companion. Questa guida spiega come configurare il sito su docker, con un proxy che ottiene automaticamente i certificati SSL. Viene utilizzato un server virtuale CentOS 7.","canonical_url":"https:\/\/prohoster.info\/it\/blog\/administrirovanie\/nastrojka-avtomaticheskogo-polucheniya-sertifikatov-letsencrypt-s-pomoshhyu-docker-v-linux","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"it_IT","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432 letsencrypt \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e docker \u0432 linux | ProHoster","og:description":"\u041c\u0435\u043d\u044f\u043b \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u0438 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0437\u0430\u043d\u043e\u0432\u043e. \u042f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e, \u0447\u0442\u043e\u0431\u044b \u0441\u0430\u0439\u0442 \u0431\u044b\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e https \u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b letsencrypt \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438\u0441\u044c \u0438 \u043f\u0440\u043e\u0434\u043b\u0435\u0432\u0430\u043b\u0438\u0441\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u042d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f, \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0430 \u043e\u0431\u0440\u0430\u0437\u0430 docker nginx-proxy \u0438 nginx-proxy-companion. \u042d\u0442\u043e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0430\u0439\u0442 \u043d\u0430 docker, \u0441 \u043f\u0440\u043e\u043a\u0441\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 SSL \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 CentOS 7. \u042f","og:url":"https:\/\/prohoster.info\/it\/blog\/administrirovanie\/nastrojka-avtomaticheskogo-polucheniya-sertifikatov-letsencrypt-s-pomoshhyu-docker-v-linux","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T18:35:08+00:00","article:modified_time":"2019-10-31T18:35:08+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"30364","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-02-08 16:20:25","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 16:13:53","updated":"2026-02-08 16:20:25","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/posts\/30364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/comments?post=30364"}],"version-history":[{"count":1,"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/posts\/30364\/revisions"}],"predecessor-version":[{"id":157523,"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/posts\/30364\/revisions\/157523"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/media?parent=30364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/categories?post=30364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/tags?post=30364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}