diff --git a/templates/limesurvey.env.j2 b/templates/limesurvey.env.j2
index 3432fa854c0d9d39ab01aaa78e797ddbae172b20..45f51a5776bfb73d6623db60920d995f9505b430 100644
--- a/templates/limesurvey.env.j2
+++ b/templates/limesurvey.env.j2
@@ -9,5 +9,7 @@ ADMIN_NAME={{ limesurvey_admin_name }}
 ADMIN_EMAIL={{ limesurvey_admin_email }}
 ADMIN_PASSWORD={{ limesurvey_admin_pass }}
 SHOW_SCRIPT_NAME=false
+# This needs to be set for the docker image to create the limesurvey security.php, it's of no other consequence
+ENCRYPT_KEYPAIR={{ limesurvey_encrypt_nonce }}
 ENCRYPT_NONCE={{ limesurvey_encrypt_nonce }}
 ENCRYPT_SECRET_BOX_KEY={{ limesurvey_encrypt_key }}