aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/Dockerfile3
-rwxr-xr-xserver/docker-start.sh4
2 files changed, 5 insertions, 2 deletions
diff --git a/server/Dockerfile b/server/Dockerfile
index aac0a65..a13e230 100644
--- a/server/Dockerfile
+++ b/server/Dockerfile
@@ -83,6 +83,9 @@ ARG PORT=6666
ENV PORT=${PORT}
EXPOSE ${PORT}
+ARG THREADS=4
+ENV THREADS=${THREADS}
+
VOLUME ["/data/"]
ARG DOCKER_REPO
diff --git a/server/docker-start.sh b/server/docker-start.sh
index 34a0e49..eebef1c 100755
--- a/server/docker-start.sh
+++ b/server/docker-start.sh
@@ -4,5 +4,5 @@ cd /opt/app
alembic upgrade head
-echo "Starting szurubooru API on port ${PORT}"
-exec waitress-serve-3 --port ${PORT} szurubooru.facade:app
+echo "Starting szurubooru API on port ${PORT} - Running on ${THREADS} threads"
+exec waitress-serve-3 --port ${PORT} --threads ${THREADS} szurubooru.facade:app

© 2015 - 2026 Jakob L. Kreuze