summaryrefslogtreecommitdiff
path: root/config/database.yml.env
blob: 1e35651c9a674957dfc778977c860d536625ab21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<%= ENV['RAILS_ENV'] %>:
  ## 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
  adapter: <%= ENV['GITLAB_DATABASE_ADAPTER'] || 'postgresql' %>
  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' %>

  ## 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' %>