diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index adf78f774a8037935087358df3179bcaf27d4277..78f4fa997ff2af36189b5392cf0fab7162c38d4f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -112,6 +112,8 @@ container-test:
     - echo "${CI_REGISTRY_PASSWORD}" | docker login -u ${CI_REGISTRY_USER} --password-stdin ${CI_REGISTRY}
     - docker-compose -f docker-compose.yml -f docker-compose.ci.yml pull -q
     - docker-compose -f docker-compose.yml -f docker-compose.ci.yml up -d
+    - sleep 10
+    - docker-compose restart webserver
 
 deploy_staging:
   # Deploy the current image to the production machine.