Skip to content

Commit

Permalink
Merge pull request #1610 from maykinmedia/fix-uwsgi-port
Browse files Browse the repository at this point in the history
Fix uWSGI port config for Docker
  • Loading branch information
alextreme authored Feb 7, 2025
2 parents e43a611 + b0f88ea commit 7e99899
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions bin/docker_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ export UWSGI_SINGLE_INTERPRETER=1
export UWSGI_ENABLE_THREADS=1

# --- HTTP Settings
# Use http rather than wsgi protocol (also note that UWSGI_PORT is not a native uwsgi option).
export UWSGI_HTTP=${UWSGI_PORT:-8000}
export UWSGI_HTTP=0.0.0.0:${PORT:-8000}
export UWSGI_HTTP_KEEPALIVE=${UWSGI_HTTP_KEEPALIVE:-1}
export UWSGI_HTTP_TIMEOUT=${UWSGI_HTTP_TIMEOUT:-120}

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ services:
# Overridable uwsgi settings
- UWSGI_PROCESSES
- UWSGI_THREADS
- UWSGI_PORT
- PORT
- UWSGI_HTTP_KEEPALIVE
- UWSGI_HTTP_TIMEOUT
- UWSGI_HARAKIRI
Expand Down

0 comments on commit 7e99899

Please sign in to comment.