From eec97141917ad9868480d77041efe7e4829aa983 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Thu, 31 May 2018 10:27:23 -0400 Subject: [PATCH] Bind the container server to ipv6 as well as ipv4 ports. Fixes #3392 --- pkg/docker/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/docker/entrypoint.sh b/pkg/docker/entrypoint.sh index a7d6d153c..5ad043e87 100755 --- a/pkg/docker/entrypoint.sh +++ b/pkg/docker/entrypoint.sh @@ -20,7 +20,7 @@ fi # Using --threads to have multi-threaded single-process worker if [ ! -z ${PGADMIN_ENABLE_TLS} ]; then - exec gunicorn --bind 0.0.0.0:${PGADMIN_LISTEN_PORT:-443} -w 1 --threads ${GUNICORN_THREADS:-25} --access-logfile - --keyfile /certs/server.key --certfile /certs/server.cert run_pgadmin:app + exec gunicorn --bind 0.0.0.0:${PGADMIN_LISTEN_PORT:-443} --bind [::]:${PGADMIN_LISTEN_PORT:-443} -w 1 --threads ${GUNICORN_THREADS:-25} --access-logfile - --keyfile /certs/server.key --certfile /certs/server.cert run_pgadmin:app else - exec gunicorn --bind 0.0.0.0:${PGADMIN_LISTEN_PORT:-80} -w 1 --threads ${GUNICORN_THREADS:-25} --access-logfile - run_pgadmin:app + exec gunicorn --bind 0.0.0.0:${PGADMIN_LISTEN_PORT:-80} --bind [::]:${PGADMIN_LISTEN_PORT:-80} -w 1 --threads ${GUNICORN_THREADS:-25} --access-logfile - run_pgadmin:app fi