diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 57eb0d48b577d64bcf042e0905d22e06e75d113f..5566ff566a24b84e38afe05369a17d92b7729298 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -22,7 +22,7 @@ run-tox-pipeline:
     POSTGRES_DB: postgres
     POSTGRES_USER: nwa
     POSTGRES_PASSWORD: nwa
-    DATABASE_URL: 'postgresql://nwa:nwa@postgres:5432/postgres'
+    DATABASE_URL: 'postgresql://nwa:nwa@localhost:5432/postgres'
     PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
 
   # Pip's cache doesn't store the python packages