2019-11-23 19:57:39 +00:00
|
|
|
default: &default
|
|
|
|
adapter: postgresql
|
|
|
|
encoding: unicode
|
|
|
|
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
|
|
|
host: <%= ENV.fetch('POSTGRES_HOST', 'localhost') %>
|
2021-07-28 14:06:51 +00:00
|
|
|
port: <%= ENV.fetch('POSTGRES_PORT', '5432') %>
|
2019-11-23 19:57:39 +00:00
|
|
|
|
|
|
|
development:
|
|
|
|
<<: *default
|
2019-11-27 04:42:57 +00:00
|
|
|
database: <%= ENV.fetch('POSTGRES_DATABASE', 'chatwoot_dev') %>
|
|
|
|
username: <%= ENV.fetch('POSTGRES_USERNAME', 'postgres') %>
|
|
|
|
password: <%= ENV.fetch('POSTGRES_PASSWORD', '') %>
|
2019-11-23 19:57:39 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
<<: *default
|
|
|
|
database: <%= ENV.fetch('POSTGRES_DATABASE', 'chatwoot_test') %>
|
|
|
|
username: <%= ENV.fetch('POSTGRES_USERNAME', 'postgres') %>
|
|
|
|
password: <%= ENV.fetch('POSTGRES_PASSWORD', '') %>
|
|
|
|
|
|
|
|
production:
|
|
|
|
<<: *default
|
|
|
|
database: <%= ENV.fetch('POSTGRES_DATABASE', 'chatwoot_production') %>
|
|
|
|
username: <%= ENV.fetch('POSTGRES_USERNAME', 'chatwoot_prod') %>
|
|
|
|
password: <%= ENV.fetch('POSTGRES_PASSWORD', 'chatwoot_prod') %>
|