Skip to content

Instantly share code, notes, and snippets.

@natevick
Last active November 23, 2019 14:18
Show Gist options
  • Save natevick/c4e80964c7a7990b3bf4387de2f2b5b6 to your computer and use it in GitHub Desktop.
Save natevick/c4e80964c7a7990b3bf4387de2f2b5b6 to your computer and use it in GitHub Desktop.
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