mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
21 lines
696 B
YAML
21 lines
696 B
YAML
default: &default
|
|
adapter: postgresql
|
|
encoding: unicode
|
|
# 3 connections for Puma, 15 for GoodJob (in async mode, the default for self-hosters) = 18 connections
|
|
pool: <%= ENV.fetch("DB_POOL_SIZE") { 18 } %>
|
|
host: <%= ENV.fetch("DB_HOST") { "127.0.0.1" } %>
|
|
port: <%= ENV.fetch("DB_PORT") { "5432" } %>
|
|
user: <%= ENV.fetch("POSTGRES_USER") { nil } %>
|
|
password: <%= ENV.fetch("POSTGRES_PASSWORD") { nil } %>
|
|
|
|
development:
|
|
<<: *default
|
|
database: <%= ENV.fetch("POSTGRES_DB") { "maybe_development" } %>
|
|
|
|
test:
|
|
<<: *default
|
|
database: <%= ENV.fetch("POSTGRES_DB") { "maybe_test" } %>
|
|
|
|
production:
|
|
<<: *default
|
|
database: <%= ENV.fetch("POSTGRES_DB") { "maybe_production" } %>
|