From bd3c526668e9d6a359269eb0d4a1daddd073c233 Mon Sep 17 00:00:00 2001 From: dekzter Date: Wed, 2 Apr 2025 18:00:27 -0400 Subject: [PATCH] persist nginx port --- docker/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 7156b057..fd6cde00 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -36,6 +36,7 @@ export POSTGRES_PORT=${POSTGRES_PORT:-5432} export REDIS_HOST=${REDIS_HOST:-localhost} export REDIS_DB=${REDIS_DB:-0} +export DISPATCHARR_PORT=${DISPATCHARR_PORT:-9191} # READ-ONLY - don't let users change these export POSTGRES_DIR=/data/db @@ -56,6 +57,7 @@ if [[ ! -f /etc/profile.d/dispatcharr.sh ]]; then echo "export REDIS_HOST=$REDIS_HOST" >> /etc/profile.d/dispatcharr.sh echo "export REDIS_DB=$REDIS_DB" >> /etc/profile.d/dispatcharr.sh echo "export POSTGRES_DIR=$POSTGRES_DIR" >> /etc/profile.d/dispatcharr.sh + echo "export DISPATCHARR_PORT=$DISPATCHARR_PORT" >> /etc/profile.d/dispatcharr.sh fi chmod +x /etc/profile.d/dispatcharr.sh @@ -100,7 +102,6 @@ else pids+=("$nginx_pid") fi - echo "🚀 Starting uwsgi..." su - $POSTGRES_USER -c "cd /app && uwsgi --ini $uwsgi_file &" uwsgi_pid=$(pgrep uwsgi | sort | head -n1)