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.
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.
2. Development Dockerfiles
Author the Dockerfiles for the web (nginx), app (puma), background worker, and webpack-dev-server containers.
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.
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.