Skip to content

Commit

Permalink
Updated the dockers so that gunicorn listens internally on port 80
Browse files Browse the repository at this point in the history
  • Loading branch information
VisLab committed Oct 4, 2024
1 parent f335cbe commit 7cf79fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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"]

0 comments on commit 7cf79fc

Please sign in to comment.