If you are new to docker I recommend first getting the basics downs with the docker 101 course
I have recently started using docker for a new project that I am working on and I want to do all my development inside docker as well as host the application on a docker environment.
Doing the hosting on docker was fairly easy with the help of Dokku on Digital Ocean. They have a one-click install that makes it easy to get your Dokku hosting up and running. Dokku makes deployments easy and if you have used Heroku before you will pick up Dokku in no time at all.
So with hosting sorted I am currently determined to do all the development using docker.
these are the configuration files I am currently using.
After doing a docker-compose build and docker-compose up this allows me to run commands like:
- docker-compose run spring rake db:migrate
- docker-compose run spring spring rspec
If you like what you see be sure to check out these links as well:
One thought on “Ruby on Rails development with docker-compose, spring and PostgreSQL”