summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile3
-rw-r--r--docker/start.sh2
2 files changed, 4 insertions, 1 deletions
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