summaryrefslogtreecommitdiff
path: root/.docker/web-nginx/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to '.docker/web-nginx/Dockerfile')
-rw-r--r--.docker/web-nginx/Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/.docker/web-nginx/Dockerfile b/.docker/web-nginx/Dockerfile
index 21b8645..282e48c 100644
--- a/.docker/web-nginx/Dockerfile
+++ b/.docker/web-nginx/Dockerfile
@@ -16,6 +16,9 @@ ENV APP_BASE=${APP_BASE:-/books}
# APP_WEB_ROOT=/var/www/html/books
# APP_BASE=
+# Resolver for nginx (kube-dns.kube-system.svc.cluster.local for k8s)
+ENV RESOLVER=${RESOLVER:-127.0.0.11}
+
# It's necessary to set the following NGINX_ENVSUBST_OUTPUT_DIR env var to tell
# nginx to replace the env vars of /etc/nginx/templates/nginx.conf.template
# and put the result in /etc/nginx/nginx.conf (instead of /etc/nginx/conf.d/nginx.conf)