diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 28d17d3703609b6214faeb18aebf98b9cca785ec..c5d0b6b8fe257243f25179b2e429be2d0b4333ee 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -26,7 +26,7 @@ test_server:
     - cd app/server
     - npm install
     - PORT=3002 \
-      MONGODB_URL=mongodb://localhost:27017/test \
+      MONGODB_URL=mongodb://mongodb:27017/test \
       JWT_SECRET=$JWT_SECRET \
       npm run test