diff --git a/mainline/alpine-perl/Dockerfile b/mainline/alpine-perl/Dockerfile index 7e9748414693bde53b2c643a8208b4ff9112b028..64ecd48fdfce6540041c92dbac330673fa0685ee 100644 --- a/mainline/alpine-perl/Dockerfile +++ b/mainline/alpine-perl/Dockerfile @@ -102,7 +102,10 @@ RUN set -x \ && apk add --no-cache tzdata \ # forward request and error logs to docker log collector && ln -sf /dev/stdout /var/log/nginx/access.log \ - && ln -sf /dev/stderr /var/log/nginx/error.log + && ln -sf /dev/stderr /var/log/nginx/error.log \ +# make default server listen on ipv6 + && sed -i -E 's,listen 80;,listen 80;\n listen [::]:80;,' \ + /etc/nginx/conf.d/default.conf EXPOSE 80 diff --git a/mainline/alpine/Dockerfile b/mainline/alpine/Dockerfile index 244525783c22d733c42a679b7a8f1b71e9e44838..d7ec4c40cb18df9e05c73d6b2ef25c7ff42371d5 100644 --- a/mainline/alpine/Dockerfile +++ b/mainline/alpine/Dockerfile @@ -101,7 +101,10 @@ RUN set -x \ && apk add --no-cache tzdata \ # forward request and error logs to docker log collector && ln -sf /dev/stdout /var/log/nginx/access.log \ - && ln -sf /dev/stderr /var/log/nginx/error.log + && ln -sf /dev/stderr /var/log/nginx/error.log \ +# make default server listen on ipv6 + && sed -i -E 's,listen 80;,listen 80;\n listen [::]:80;,' \ + /etc/nginx/conf.d/default.conf EXPOSE 80 diff --git a/mainline/buster-perl/Dockerfile b/mainline/buster-perl/Dockerfile index 9b4e048761236395f2965c1b3c42e2d9914c8c11..af72698b337a653c9b41a94071cdc01a1508f57b 100644 --- a/mainline/buster-perl/Dockerfile +++ b/mainline/buster-perl/Dockerfile @@ -97,6 +97,10 @@ RUN set -x \ RUN ln -sf /dev/stdout /var/log/nginx/access.log \ && ln -sf /dev/stderr /var/log/nginx/error.log +# make default server listen on ipv6 +RUN sed -i -E 's,listen 80;,listen 80;\n listen [::]:80;,' \ + /etc/nginx/conf.d/default.conf + EXPOSE 80 STOPSIGNAL SIGTERM diff --git a/mainline/buster/Dockerfile b/mainline/buster/Dockerfile index 23e8a816ce39971c821ea6343cf68e118b720098..33943181989233bad587e7614766252a4cd45bc6 100644 --- a/mainline/buster/Dockerfile +++ b/mainline/buster/Dockerfile @@ -96,6 +96,10 @@ RUN set -x \ RUN ln -sf /dev/stdout /var/log/nginx/access.log \ && ln -sf /dev/stderr /var/log/nginx/error.log +# make default server listen on ipv6 +RUN sed -i -E 's,listen 80;,listen 80;\n listen [::]:80;,' \ + /etc/nginx/conf.d/default.conf + EXPOSE 80 STOPSIGNAL SIGTERM diff --git a/stable/alpine-perl/Dockerfile b/stable/alpine-perl/Dockerfile index ed451a03cb135b0027fe1826da8261b66df3268b..213f33f8aad7d6604e4272208bc24cdfd37f6f96 100644 --- a/stable/alpine-perl/Dockerfile +++ b/stable/alpine-perl/Dockerfile @@ -102,7 +102,10 @@ RUN set -x \ && apk add --no-cache tzdata \ # forward request and error logs to docker log collector && ln -sf /dev/stdout /var/log/nginx/access.log \ - && ln -sf /dev/stderr /var/log/nginx/error.log + && ln -sf /dev/stderr /var/log/nginx/error.log \ +# make default server listen on ipv6 + && sed -i -E 's,listen 80;,listen 80;\n listen [::]:80;,' \ + /etc/nginx/conf.d/default.conf EXPOSE 80 diff --git a/stable/alpine/Dockerfile b/stable/alpine/Dockerfile index ef1088e84c1d3f4f70be84af5ee4313181eb7bf0..debe3ac70288596cb414897b7d190c2f6c164190 100644 --- a/stable/alpine/Dockerfile +++ b/stable/alpine/Dockerfile @@ -101,7 +101,10 @@ RUN set -x \ && apk add --no-cache tzdata \ # forward request and error logs to docker log collector && ln -sf /dev/stdout /var/log/nginx/access.log \ - && ln -sf /dev/stderr /var/log/nginx/error.log + && ln -sf /dev/stderr /var/log/nginx/error.log \ +# make default server listen on ipv6 + && sed -i -E 's,listen 80;,listen 80;\n listen [::]:80;,' \ + /etc/nginx/conf.d/default.conf EXPOSE 80 diff --git a/stable/buster-perl/Dockerfile b/stable/buster-perl/Dockerfile index a477b1c7a95401ed62b0e8bd91c3bd2577f13333..72c0c92f1e0bff64f0dd4dea2594d69b30b191a5 100644 --- a/stable/buster-perl/Dockerfile +++ b/stable/buster-perl/Dockerfile @@ -97,6 +97,10 @@ RUN set -x \ RUN ln -sf /dev/stdout /var/log/nginx/access.log \ && ln -sf /dev/stderr /var/log/nginx/error.log +# make default server listen on ipv6 +RUN sed -i -E 's,listen 80;,listen 80;\n listen [::]:80;,' \ + /etc/nginx/conf.d/default.conf + EXPOSE 80 STOPSIGNAL SIGTERM diff --git a/stable/buster/Dockerfile b/stable/buster/Dockerfile index 9f289bf4944f73c46099d073af7c4cf02a690b22..8049d482ec64da81f2be0d263635a05b05f522f7 100644 --- a/stable/buster/Dockerfile +++ b/stable/buster/Dockerfile @@ -96,6 +96,10 @@ RUN set -x \ RUN ln -sf /dev/stdout /var/log/nginx/access.log \ && ln -sf /dev/stderr /var/log/nginx/error.log +# make default server listen on ipv6 +RUN sed -i -E 's,listen 80;,listen 80;\n listen [::]:80;,' \ + /etc/nginx/conf.d/default.conf + EXPOSE 80 STOPSIGNAL SIGTERM