summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-19 10:20:13 -0700
committerAndrew Godwin2022-11-19 10:20:13 -0700
commit2142677b015507bc1aeb6179c5dfc4dfa3aaf0ce (patch)
treedaac448f073c16a3e48157f2897ee6eff2a4d4d7 /docker
parent80193114909a3f6ca1eda9a47b6330ef249a8ee5 (diff)
downloadtakahe-2142677b015507bc1aeb6179c5dfc4dfa3aaf0ce.tar.gz
takahe-2142677b015507bc1aeb6179c5dfc4dfa3aaf0ce.tar.bz2
takahe-2142677b015507bc1aeb6179c5dfc4dfa3aaf0ce.zip
A few more tweaks for an initial deploy
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