From 2142677b015507bc1aeb6179c5dfc4dfa3aaf0ce Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 19 Nov 2022 10:20:13 -0700 Subject: A few more tweaks for an initial deploy --- docker/Dockerfile | 3 +++ docker/start.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'docker') diff --git a/docker/Dockerfile b/docker/Dockerfile index a35f1ff..b4d9d57 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -16,4 +16,7 @@ RUN DJANGO_SETTINGS_MODULE=takahe.settings.development python3 manage.py collect EXPOSE 8000 +# Set some sensible defaults +ENV GUNICORN_CMD_ARGS="--workers 8" + CMD ["sh", "/takahe/docker/start.sh"] diff --git a/docker/start.sh b/docker/start.sh index 1c01b6e..d7dd3fd 100644 --- a/docker/start.sh +++ b/docker/start.sh @@ -2,4 +2,4 @@ python3 manage.py migrate -exec gunicorn takahe.wsgi:application -w 8 -b 0.0.0.0:8000 +exec gunicorn takahe.wsgi:application -b 0.0.0.0:8000 -- cgit v1.2.3