summaryrefslogtreecommitdiff
path: root/doc/administration/postgresql/multiple_databases.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/administration/postgresql/multiple_databases.md')
-rw-r--r--doc/administration/postgresql/multiple_databases.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/administration/postgresql/multiple_databases.md b/doc/administration/postgresql/multiple_databases.md
index 25f148dbe84..836736fb73f 100644
--- a/doc/administration/postgresql/multiple_databases.md
+++ b/doc/administration/postgresql/multiple_databases.md
@@ -67,6 +67,9 @@ the other way around.
1. Save the `config/database.yml` file.
+1. Update the service files to set the `GITLAB_ALLOW_SEPARATE_CI_DATABASE`
+ environment variable to `true`.
+
1. Create the `gitlabhq_production_ci` database:
```shell
@@ -100,6 +103,7 @@ the other way around.
1. Edit `/etc/gitlab/gitlab.rb` and add the following lines:
```ruby
+ gitlab_rails['env'] = { 'GITLAB_ALLOW_SEPARATE_CI_DATABASE' => 'true' }
gitlab_rails['databases']['ci']['enable'] = true
gitlab_rails['databases']['ci']['db_database'] = 'gitlabhq_production_ci'
```