/var/opt/gitlab/postgresql
/var/opt/gitlab/postgresql/.s.PGSQL.5432
gitlab-psql
gitlab-psql
gitlabhq_production
sudo -u gitlab-psql /opt/gitlab/embedded/bin/psql -h /var/opt/gitlab/postgresql -d gitlabhq_production
apt update && apt install -y socat sudo -u gitlab-psql socat TCP-LISTEN:5432,reuseaddr,fork UNIX-CLIENT:/var/opt/gitlab/postgresql/.s.PGSQL.5432
# This file is managed by gitlab-ctl. Manual changes will be # erased! To change the contents below, edit /etc/gitlab/gitlab.rb # and run `sudo gitlab-ctl reconfigure`. production: adapter: postgresql encoding: unicode collation: database: gitlabhq_production pool: 10 username: 'gitlab' password: host: '/var/opt/gitlab/postgresql' port: 5432 socket: sslmode: sslrootcert: sslca: