Instead of using bind-mounts for the data/config/log volumes in the gitlab container, which apparently caused the problem, I switched to docker volumes.
Did not work volumes:
Worked volumes: - gitlab-config:/etc/gitlab - gitlab-data:/var/opt/gitlab
volumes: gitlab-runner: driver: local gitlab-config: driver: local gitlab-logs: driver: local gitlab-data: driver: local