diff --git a/docker-startup.sh b/docker-startup.sh
index 19ac40558e38421062be63bc178056d37a5e22b1..673e48fb8e1ab27e756730015b07d928b62b0c30 100755
--- a/docker-startup.sh
+++ b/docker-startup.sh
@@ -1,7 +1,7 @@
 #!/bin/bash
 
+RUN_MODE=${RUN_MODE:-uwsgi}
 HTTP_PORT=${HTTP_PORT:-8000}
-RUN_MODE=uwsgi
 
 if [[ -z $ALEKSIS_secret_key ]]; then
     if [[ ! -e /var/lib/aleksis/secret_key ]]; then