From 7cf79fc1a0f132aad0628e59477e94042d5b3166 Mon Sep 17 00:00:00 2001 From: Kay Robbins <1189050+VisLab@users.noreply.github.com> Date: Fri, 4 Oct 2024 09:43:37 -0500 Subject: [PATCH] Updated the dockers so that gunicorn listens internally on port 80 --- deploy_hed/Dockerfile | 6 +++--- deploy_hed_dev/Dockerfile | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/deploy_hed/Dockerfile b/deploy_hed/Dockerfile index 6fb1ef8..9279961 100644 --- a/deploy_hed/Dockerfile +++ b/deploy_hed/Dockerfile @@ -36,8 +36,8 @@ ENV PYTHONPATH="/root/hedtools" # Set environment variables for the application ENV HEDTOOLS_CONFIG_CLASS=config.ProductionConfig -# Expose the Gunicorn port (33004 by default) -EXPOSE 33000 +# Expose the Gunicorn port (80 by default) +EXPOSE 80 # Run the Flask application with Gunicorn, binding to port 33000 -CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:33000", "runserver:app"] +CMD ["gunicorn", "-w", "4", "-b", "127.0.0.1:80", "runserver:app"] diff --git a/deploy_hed_dev/Dockerfile b/deploy_hed_dev/Dockerfile index 443e17a..5a0012c 100644 --- a/deploy_hed_dev/Dockerfile +++ b/deploy_hed_dev/Dockerfile @@ -37,8 +37,8 @@ ENV PYTHONPATH="/root/hedtools" # Set environment variables for the application ENV HEDTOOLS_CONFIG_CLASS=config.ProductionConfig -# Expose the Gunicorn port (33004 by default) -EXPOSE 33004 +# Expose the Gunicorn port (80 by default) +EXPOSE 80 # Run the Flask application with Gunicorn, binding to port 33004 -CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:33004", "runserver:app"] +CMD ["gunicorn", "-w", "4", "-b", "127.0.0.1:80", "runserver:app"]