Изменения документа Nginx auto proxy for containers

Редактировал(а) Alexandr Fokin 2024/11/23 17:34

<
От версии < 1.2 >
отредактировано Alexandr Fokin
на 2024/11/23 17:02
К версии < 1.3 >
отредактировано Alexandr Fokin
на 2024/11/23 17:09
>
Изменить комментарий: К данной версии нет комментариев

Комментарий

Подробности

Свойства страницы
Содержимое
... ... @@ -15,6 +15,56 @@
15 15  |LETSENCRYPT_HOST=<домен>
16 16  )))
17 17  )))
18 -|(% style="width:81px" %) |(% style="width:1369px" %)
18 +|(% style="width:81px" %) |(% style="width:1369px" %)(((
19 +|Использование Docker для настройки обратного прокси Nginx с автоматической генерацией SSL
20 +[[https:~~/~~/andreyex.ru/linux/ispolzovanie-docker-dlya-nastrojki-obratnogo-proksi-nginx-s-avtomaticheskoj-generatsiej-ssl/>>https://andreyex.ru/linux/ispolzovanie-docker-dlya-nastrojki-obratnogo-proksi-nginx-s-avtomaticheskoj-generatsiej-ssl/]]
21 +|Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation
22 +[[https:~~/~~/roman-academy.medium.com/using-docker-to-set-up-nginx-reverse-proxy-with-auto-ssl-generation-3a8a360b69ae>>https://roman-academy.medium.com/using-docker-to-set-up-nginx-reverse-proxy-with-auto-ssl-generation-3a8a360b69ae]]
23 +|
24 +)))
25 +|(% style="width:81px" %) |(% style="width:1369px" %){{code language="yaml"}}services:
19 19  
27 + reverse-proxy:
28 + image: "jwilder/nginx-proxy:latest"
29 + container_name: "reverse-proxy"
30 + volumes:
31 + - "html:/usr/share/nginx/html"
32 + - "dhparam:/etc/nginx/dhparam"
33 + - "vhost:/etc/nginx/vhost.d"
34 + - "certs:/etc/nginx/certs"
35 + - "/run/docker.sock:/tmp/docker.sock:ro"
36 + restart: "always"
37 + networks:
38 + - "proxyNet"
39 + ports:
40 + - "80:80"
41 + - "443:443"
42 +
43 + letsencrypt:
44 + image: "jrcs/letsencrypt-nginx-proxy-companion:latest"
45 + container_name: "letsencrypt-helper"
46 + volumes:
47 + - "html:/usr/share/nginx/html"
48 + - "dhparam:/etc/nginx/dhparam"
49 + - "vhost:/etc/nginx/vhost.d"
50 + - "certs:/etc/nginx/certs"
51 + - "/var/run/docker.sock:/var/run/docker.sock:ro"
52 + environment:
53 + NGINX_PROXY_CONTAINER: "reverse-proxy"
54 + DEFAULT_EMAIL: "user@domain.ru"
55 + restart: "always"
56 + depends_on:
57 + - "reverse-proxy"
58 + networks:
59 + - "proxyNet"
60 +volumes:
61 + certs:
62 + html:
63 + vhost:
64 + dhparam:
65 +
66 +networks:
67 + proxyNet:
68 + external: true{{/code}}
69 +
20 20