diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a48b0c14df99540aa5f04bbdca61c29b49d1b1bf..1ec87111695ed0052c97f9683deb4693ee70c736 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,16 +14,15 @@ run-tox-pipeline:
   image: python:3.10
 
   services:
-    - name: postgres:15.4
-      alias: postgres
+    - postgres:15.4
 
   # Change pip's cache directory to be inside the project directory since we can
   # only cache local items.
   variables:
-    POSTGRES_DB: postgres
+    POSTGRES_DB: nwa-workflows-test
     POSTGRES_USER: nwa
     POSTGRES_PASSWORD: nwa
-    DATABASE_URI_TEST: 'postgresql://nwa:nwa@postgres:5432/postgres'
+    $DATABASE_URI_TEST: 'postgresql://nwa:nwa@postgres:5432/nwa-workflows-test'
     PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
 
   # Pip's cache doesn't store the python packages
@@ -41,6 +40,7 @@ run-tox-pipeline:
     - . venv/bin/activate
 
   script:
+    - export DATABASE_URI_TEST=$DATABASE_URI_TEST
     - pip install tox
     - tox