diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3972c5d7d004fbc8b0ad356ba99350407f1518e0..77ac49a2c20dbef3d7c9d8ec51498141b5d5ba05 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -58,7 +58,7 @@ test:
     - registry_login
     - install_compose
     - sed_files compose
-    - docker-compose -p tests run -p 3000 --rm backend npm run test-prod
+    - docker-compose -p tests run -p 3000 -e NODE_ENV=test-prod --rm backend npm run test-prod
 
 release:
   variables: