Skip to content
Juri Boxberger edited this page Mar 17, 2022 · 9 revisions

connect database

# connect to gitlab container
sudo docker exec -it "<gitlab-container-name>" bash 

# install sudo if not exists
apt update && apt install sudo

# connect db
sudo -u gitlab-psql -i bash
/opt/gitlab/embedded/bin/psql --port 5432 -h /var/opt/gitlab/postgresql -d gitlabhq_production
Clone this wiki locally