brew cask install docker- launch the Docker app which was just installed on your machine
- give it permissions to install its network devices
rails new dockertestcd dockertest- Create a
Dockerfile docker build .- Create a
docker-compose.yml - Adjust
config/database.ymlso it points to the database hostname given in docker-compose - set up dev database:
docker-compose run <TARGET> rake db:create db:setup
https://rubyinrails.com/2019/03/29/dockerify-rails-6-application-setup/ https://thoughtbot.com/blog/rails-on-docker
- Who maintains the docker file and docker compose file?
- What’s the setup for the system so it tells us when we should be doing system upgrades?
- Killing a container doesn’t kill the containers it depends on?