Improve routing between containers

Create user network nginx-internal
and use Docker's internal DNS server
to resolve containers by hostname.
This commit is contained in:
2021-04-27 23:09:21 +02:00
parent d9bd3ac145
commit 54de631d29
4 changed files with 12 additions and 4 deletions

View File

@ -26,6 +26,7 @@ http {
keepalive_timeout 65;
#gzip on;
resolver 127.0.0.11 valid=30;
ssl_certificate /etc/nginx/{{ base_domain }}.crt;
ssl_certificate_key /etc/nginx/{{ base_domain }}.key;
include /etc/nginx/conf.d/*.conf;