Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the dockers so that gunicorn listens internally on port 80 #226

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions deploy_hed/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
6 changes: 3 additions & 3 deletions deploy_hed_dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Loading