The blog about containerisation, virtual machines and useful shell snippets and findings

Rails migration in docker? Easy peasy

Now I understand why should I use old good Makefile to build docker containers for production.

Because of this:

docker-compose -f docker-compose.yml -f docker-compose.prod.yml run --rm web bundle exec rake db:migrate