Study how to use docker with rails. Docker is awesome!
It's base on rails5.1.1, postgres. Tested in MacOS.
git clone git@github.com:dayudodo/DockerStudy.git
- build
docker-compose build
- create database
cd DockerStudy
docker-compose run --rm app rails db:create db:migrate
- Finally:
docker-compose up