Skip to content

Instantly share code, notes, and snippets.

@nvick
Last active Nov 23, 2019
Embed
What would you like to do?
default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS", 5) %>
username: <%= ENV.fetch("DATABASE_USER", 'postgres') %>
host: <%= ENV.fetch("DATABASE_HOST", 'localhost') %>
port: 5432
development:
<<: *default
database: docker_development
test:
<<: *default
database: docker_test
production:
<<: *default
database: docker_production
username: docker
password: <%= ENV['DOCKER_DATABASE_PASSWORD'] %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment