Skip to content

Commit 7e99899

Browse files
authored
Merge pull request #1610 from maykinmedia/fix-uwsgi-port
Fix uWSGI port config for Docker
2 parents e43a611 + b0f88ea commit 7e99899

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

bin/docker_start.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ export UWSGI_SINGLE_INTERPRETER=1
4141
export UWSGI_ENABLE_THREADS=1
4242

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

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ services:
8686
# Overridable uwsgi settings
8787
- UWSGI_PROCESSES
8888
- UWSGI_THREADS
89-
- UWSGI_PORT
89+
- PORT
9090
- UWSGI_HTTP_KEEPALIVE
9191
- UWSGI_HTTP_TIMEOUT
9292
- UWSGI_HARAKIRI

0 commit comments

Comments
 (0)