Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
475da28b
Commit
475da28b
authored
May 11, 2020
by
Anton Smith
Committed by
Achilleas Pipinellis
May 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add specific PSQL instructions for clarity
parent
3442487e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
doc/administration/external_database.md
doc/administration/external_database.md
+21
-2
No files found.
doc/administration/external_database.md
View file @
475da28b
...
@@ -13,5 +13,24 @@ If you use a cloud-managed service, or provide your own PostgreSQL instance:
...
@@ -13,5 +13,24 @@ If you use a cloud-managed service, or provide your own PostgreSQL instance:
[
database requirements document
](
../install/requirements.md#database
)
.
[
database requirements document
](
../install/requirements.md#database
)
.
1.
Set up a
`gitlab`
username with a password of your choice. The
`gitlab`
user
1.
Set up a
`gitlab`
username with a password of your choice. The
`gitlab`
user
needs privileges to create the
`gitlabhq_production`
database.
needs privileges to create the
`gitlabhq_production`
database.
1.
Configure the GitLab application servers with the appropriate details.
1.
Configure the GitLab application servers with the appropriate connection details
This step is covered in
[
Configuring GitLab for HA
](
high_availability/gitlab.md
)
.
for your external PostgreSQL service in your
`/etc/gitlab/gitlab.rb`
file:
```ruby
# Disable the bundled Omnibus provided PostgreSQL
postgresql['enable'] = false
# PostgreSQL connection details
gitlab_rails['db_adapter'] = 'postgresql'
gitlab_rails['db_encoding'] = 'unicode'
gitlab_rails['db_host'] = '10.1.0.5' # IP/hostname of database server
gitlab_rails['db_password'] = 'DB password'
```
For more information on GitLab HA setups, refer to [configuring GitLab for HA](high_availability/gitlab.md).
1.
Reconfigure for the changes to take effect:
```
shell
sudo
gitlab-ctl reconfigure
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment