/docker_on_rails

Experiments using docker in rails development environment

Primary LanguageRuby

Docker on Rails

  1. Run ‘docker-compose build` from app’s root directory

  2. Boot rails server ‘docker-compose up`

  3. Run migrations if any ‘docker-compose run web rake db:create`

  4. Spin the bash of rails container ‘docker exec -i -t loving_heisenberg bash`

That’s it!