diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8821f3ba6c4e5de05f0a3d36bc44d7369a0ffcdd..71d8266cb9e615b45b3d341166a21845ff423881 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,8 @@ test:
   services:
     - name: mongo:5.0.14
       alias: mongodb
+  variables:
+      AMIVAPI_CONFIG: /api/amivapi/tests/config.py
   before_script:
     - pip install --upgrade pip
     - pip install tox
diff --git a/amivapi/settings.py b/amivapi/settings.py
index 7319e45751b149e9d6ff696b02a62c4b0d064c69..ea1501c56cc75d1c72487e8a3439777af2d47dd7 100644
--- a/amivapi/settings.py
+++ b/amivapi/settings.py
@@ -44,7 +44,7 @@ MONGO_QUERY_BLACKLIST = ['$where']  # default blacklists where and regex queries
 CACHE_CONTROL = 'no-cache, must-revalidate'
 
 # MongoDB
-MONGO_HOST = 'mongodb'
+MONGO_HOST = 'localhost'
 MONGO_PORT = 27017
 MONGO_DBNAME = 'amivapi'
 MONGO_USERNAME = 'amivapi'