Skip to content

Commit 1ae02a5

Browse files
author
Dmitry Berezovsky
committed
Added timout option
1 parent c24b185 commit 1ae02a5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ MAINTAINER "Dmitry Berezovsky <[email protected]>"
33

44
ENV APP_PROCESS_NAME="wsgi-application"
55
ENV APP_MODULE="wsgi"
6-
ENV APP_WORKERS_COUNT="3"
6+
ENV APP_WORKERS_COUNT="4"
7+
ENV TIMEOUT="30"
78
ENV APP_LOG_LEVEL="info"
89
ENV APP_PORT="8000"
910
ENV LOG_DIR="/srv/logs"

start-gunicorn.sh

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ gunicorn $APP_MODULE \
1414
--name $APP_PROCESS_NAME \
1515
--bind 0.0.0.0:$APP_PORT \
1616
--workers $APP_WORKERS_COUNT \
17+
--timeout $TIMEOUT \
1718
--log-level=$APP_LOG_LEVEL \
1819
--log-file="$LOG_DIR/gunicorn.log" \
1920
--access-logfile="$LOG_DIR/access.log" \

0 commit comments

Comments
 (0)