Docker setup: Allow to configure number of worker processes

This commit is contained in:
Raphael Michel
2020-12-16 12:49:13 +01:00
parent 33ba4daadb
commit 39223f0f65
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -3,9 +3,10 @@ cd /pretix/src
export DJANGO_SETTINGS_MODULE=production_settings
export DATA_DIR=/data/
export HOME=/pretix
export NUM_WORKERS=$((2 * $(nproc --all)))
AUTOMIGRATE=${AUTOMIGRATE:-yes}
NUM_WORKERS_DEFAULT=$((2 * $(nproc --all)))
export NUM_WORKERS=${NUM_WORKERS:-$NUM_WORKERS_DEFAULT}
if [ ! -d /data/logs ]; then
mkdir /data/logs;