2024-02-02 09:05:04 -06:00
|
|
|
default: &default
|
|
|
|
adapter: postgresql
|
|
|
|
encoding: unicode
|
2025-01-24 13:39:08 -05:00
|
|
|
# 3 connections for Puma, 8 for GoodJob (in async mode, the default for self-hosters) = 11 connections
|
2025-02-04 12:06:05 -06:00
|
|
|
pool: <%= ENV.fetch("DB_POOL_SIZE") { 13 } %>
|
2024-02-02 16:03:46 +00:00
|
|
|
host: <%= ENV.fetch("DB_HOST") { "127.0.0.1" } %>
|
2024-02-26 06:44:07 -05:00
|
|
|
port: <%= ENV.fetch("DB_PORT") { "5432" } %>
|
2024-02-05 23:17:50 -05:00
|
|
|
user: <%= ENV.fetch("POSTGRES_USER") { nil } %>
|
2024-04-13 09:28:45 -04:00
|
|
|
password: <%= ENV.fetch("POSTGRES_PASSWORD") { nil } %>
|
2024-02-02 09:05:04 -06:00
|
|
|
|
|
|
|
development:
|
|
|
|
<<: *default
|
2024-04-13 09:28:45 -04:00
|
|
|
database: <%= ENV.fetch("POSTGRES_DB") { "maybe_development" } %>
|
2024-02-02 09:05:04 -06:00
|
|
|
|
|
|
|
test:
|
|
|
|
<<: *default
|
2024-04-13 09:28:45 -04:00
|
|
|
database: <%= ENV.fetch("POSTGRES_DB") { "maybe_test" } %>
|
2024-02-02 09:05:04 -06:00
|
|
|
|
|
|
|
production:
|
|
|
|
<<: *default
|
2024-04-13 09:28:45 -04:00
|
|
|
database: <%= ENV.fetch("POSTGRES_DB") { "maybe_production" } %>
|