2015-12-27 11:36:50 -05:00
|
|
|
<%= ENV['RAILS_ENV'] %>:
|
2016-02-01 13:10:25 -05:00
|
|
|
## Connection information
|
|
|
|
# Please be aware that the DATABASE_URL environment variable will take
|
|
|
|
# precedence over the following 6 parameters. For more information, see
|
|
|
|
# doc/administration/environment_variables.md
|
2015-12-28 03:37:59 -05:00
|
|
|
adapter: <%= ENV['GITLAB_DATABASE_ADAPTER'] || 'postgresql' %>
|
2015-12-27 11:36:50 -05:00
|
|
|
database: <%= ENV['GITLAB_DATABASE_DATABASE'] || "gitlab_#{ENV['RAILS_ENV']}" %>
|
|
|
|
username: <%= ENV['GITLAB_DATABASE_USERNAME'] || 'root' %>
|
|
|
|
password: <%= ENV['GITLAB_DATABASE_PASSWORD'] || '' %>
|
|
|
|
host: <%= ENV['GITLAB_DATABASE_HOST'] || 'localhost' %>
|
|
|
|
port: <%= ENV['GITLAB_DATABASE_PORT'] || '5432' %>
|
2016-02-01 13:10:25 -05:00
|
|
|
|
|
|
|
## Behavior information
|
|
|
|
# The following parameters will be used even if you're using the DATABASE_URL
|
|
|
|
# environment variable.
|
|
|
|
encoding: <%= ENV['GITLAB_DATABASE_ENCODING'] || 'unicode' %>
|
|
|
|
pool: <%= ENV['GITLAB_DATABASE_POOL'] || '10' %>
|