So after some trial and noob error, I managed to dockerise my ruby or rails app and postgres db using docker-compose.
I can run docker-compose up and it runs and it can access it via URL.
Being such a noob, and still struggling to see the point of me doing this, can someone point me to how I can use it?
- Source control so others can work on my app too. Do they just pull it from git and build and run it?
- Do I need the Dockerfile as well as the docker-compose? If I need both, would anyone who pulls down my codebase need to run docker build and then docker-compose up? Or docker compose build?
- Deployment. We use cloud foundry and bamboo, how should I deploy this using docker, what advantages will I see?
Apologies if these have been answered elsewhere.