I stole this from Leandro Moreira and wanted to save this for another day.
Thanks a lot Leadro, you finally made Docker and Rails click for me.
- First create a rails app, for instance.
rails new myapp --skip-active-record
- Second create a Dockerfile to create the 'web' container.
- Third create a docker-compose.yml to create infrastructure you need.
- Forth create a Dockerfile to create the nginx container.
- Fifth create a nginx.conf to create give nginx something to host.
- Sixth
docker-compose up