my PostgreSQL ready dockerfile
$ bundle install
$ bundle exec rake docker:build
run with mounting persistent data container
$ bundle exec rake docker:run
then, we can access PostgreSQL server like below :
$ psql -h <CONTAINER_HOST> -U postgres -p <CONTAINER_POSTGRESQL_PORT>
- initial postgres user password is
${POSTGRESQL_POSTGRES_PASSWORD}
set by Dockerfile
$ bundle exec rake spec
hyone ([email protected])