Pick a lesson below to get started.

Containerize a Ruby on Rails 6 web application for development, staging and production environments. Everything you need to know about Dockerfiles, Docker Compose, asset compilation, and running webpacker.

Coming Soon

1. Why Docker?

Docker allows you to package up your application with all of its dependencies into a standardized unit, called a container, for development and deployment. No more setting up development environments and no more production server administration.

Coming Soon

2. Development Dockerfiles

Author the Dockerfiles for the web (nginx), app (puma), background worker, and webpack-dev-server containers.

Coming Soon

3. Docker Compose

Docker Compose is a tool for defining and running multi-container Docker applications. We will use a YAML file to configure our application’s services. Then, with a single command, our development environment will be up and running.

Coming Soon

4. Mutagen

Mounted volume support in Docker is slow. Mutagen provides fast, real-time file synchronization so you don't have to wait a few seconds for each code change to take effect during development.

Coming Soon

5. Production Dockerfile Modifications

We will make small modifications to the web (nginx) and app (puma) Dockerfiles for our staging and production environments.

Want to get notified when new lessons are published?

Sign up for the newsletter to stay up to date.

Absolutely no spam. Your data is safe. Read the Privacy Policy.