Skip to content

Instantly share code, notes, and snippets.

@pedryvo
Created May 7, 2020 18:36
Show Gist options
  • Save pedryvo/f8708fc4972804139390d5e97386e3a6 to your computer and use it in GitHub Desktop.
Save pedryvo/f8708fc4972804139390d5e97386e3a6 to your computer and use it in GitHub Desktop.
Postgres container for Rails app
docker run --name postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -p 5432:5432 -d postgres
-------------------
development:
<<: &default
adapter: postgresql
encoding: unicode
database: anything_development
username: postgres
password: postgres
host: localhost
port: 5432
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment