1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-05 21:45:23 +02:00
Maybe/config/database.yml

22 lines
695 B
YAML
Raw Normal View History

2024-02-02 09:05:04 -06:00
default: &default
adapter: postgresql
encoding: unicode
# 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" } %>
port: <%= ENV.fetch("DB_PORT") { "5432" } %>
user: <%= ENV.fetch("POSTGRES_USER") { nil } %>
password: <%= ENV.fetch("POSTGRES_PASSWORD") { nil } %>
2024-02-02 09:05:04 -06:00
development:
<<: *default
database: <%= ENV.fetch("POSTGRES_DB") { "maybe_development" } %>
2024-02-02 09:05:04 -06:00
test:
<<: *default
database: <%= ENV.fetch("POSTGRES_DB") { "maybe_test" } %>
2024-02-02 09:05:04 -06:00
production:
<<: *default
database: <%= ENV.fetch("POSTGRES_DB") { "maybe_production" } %>