postgresql - How to configure gitlab to use existing postgres server -
when installing gitlab default nginx , postgres .. among other things installed regardless of whether have them or not. since have these 2 already, trying configure gitlab use them, have done nginx, using:
$ vi /etc/gitlab/gitlab.rb: # disable gitlab's nginx nginx['enable'] = false # set external web user 'nginx' on centos 7 web_server['external_users'] = ['nginx']
but need know how same postgres
.
according this doc, put in /etc/gitlab/gitlab.rb
:
# disable built-in postgres postgresql['enable'] = false # fill in values database.yml gitlab_rails['db_adapter'] = 'postgresql' gitlab_rails['db_encoding'] = 'utf8' gitlab_rails['db_host'] = '127.0.0.1' gitlab_rails['db_port'] = '3306' gitlab_rails['db_username'] = 'foo' gitlab_rails['db_password'] = 'bar'
and run command apply values : sudo gitlab-ctl reconfigure
. need seed database if choose external one. command omnibus-gitlab: sudo gitlab-rake gitlab:setup
Comments
Post a Comment