Docker Rails Demo
This is a demo app I created show how to develop and deploy
a moderately complex application with docker.
Dockerfile for comments on the setup.
When doing development, use
Gemfile.tip to add gems you are playing around
with, this is a Docker build optimization. Once you've decided you want to use
it, move it to the main
A startup script is provided in
This script takes various arguments to make it easy to start different services
within your app (e.g. Unicorn, Sidekiq).
git clone firstname.lastname@example.org:cpuguy83/docker-rails-dev-demo.git cd docker-rails-dev-demo docker build -t rails-demo . # Run the tests docker run -d --name rails-app rails-demo tests # Start the app server (unicorn) [`server` is the default command here] docker run -d -p 80:8080 --name rails-app rails-demo # Start the job worker (sidekiq) docker run -d --name rails-app rails-demo jobs
- Show how to front this with nginx, including sharing assets, etc.
- Setup logging