Less boilerplate, more productivity
Installation: https://docs.docker.com/engine/installation/
If your host machine runs OS X or Windows, the native Docker Beta which uses native virtualization - xhyve VM with an Alpine linux kernel on OS X - is recommended. This has less overhead than using the older boot2docker
service, which runs a full traditional VM over VirtualBox.
git clone [email protected]:manur/docker-rails-baseline.git
cd docker-rails-baseline
# Build docker container network
docker-compose build
# Deploy docker container network
docker-compose up
# Run migrations
docker-compose run web rake db:create db:migrate
Your Rails web server runs on a docker container, and is port mapped to localhost:3000.
Postgres service runs on a docker container, and is port mapped to localhost:5432
docker-compose down