gitlab용 postgresql 구성

gitlab용 postgresql 구성

기존 postgresql db를 중지하여 gitlab용 외부 postgresql db 인스턴스를 구성하는 방법을 아는 사람이 있습니까? 구성했는데 아래 오류가 발생했습니다.

There was an error running gitlab-ctl reconfigure:

bash[migrate gitlab-rails database] (gitlab::database_migrations line 54) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of "bash"  "/tmp/chef-script20191017-5935-1x4dofd" ----
STDOUT: rake aborted!
PG::ConnectionBad: could not connect to server: Connection refused
    Is the server running on host "ec2-**_**_**.ap-south-1.compute.amazonaws.com" (172.31.2.73) and accepting
    TCP/IP connections on port 5432?
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:48:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Tasks: TOP => gitlab:db:configure
(See full trace by running task with --trace)
STDERR: 
---- End output of "bash"  "/tmp/chef-script20191017-5935-1x4dofd" ----
Ran "bash"  "/tmp/chef-script20191017-5935-1x4dofd" returned 1

관련 정보