Skip to Content
Docker for Rails Developers
book

Docker for Rails Developers

by Rob Isenberg
February 2019
Intermediate to advanced
240 pages
5h 25m
English
Pragmatic Bookshelf
Content preview from Docker for Rails Developers

Quick Recap

We’ve introduced a powerful new tool into our arsenal: Docker Compose. It really is a one-stop-shop command for developing our app with Docker.

Let’s review what we covered. In this chapter:

  1. We introduced the docker-compose.yml and its format.

  2. We created our own docker-compose.yml for our Rails app, including a locally mounted volume to allow live editing of local files.

  3. We saw how to spin up our entire app and start the Rails server by using the command:

     $ ​​docker-compose​​ ​​up
  4. We learned various commands for managing our app with Compose:

    • List running containers

       $ ​​docker-compose​​ ​​ps
    • Manage container life cycle

       $ ​​docker-compose​​ ​​[start|stop|kill|restart|pause|unpause|rm]​​ ​​\
        ​​<service​​ ​​name>
    • View the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Rails 6: Accelerated Web Development with Ruby on Rails

Learn Rails 6: Accelerated Web Development with Ruby on Rails

Adam Notodikromo
Mastering Ruby Closures

Mastering Ruby Closures

Benjamin Tan Wei Hao

Publisher Resources

ISBN: 9781680506730Errata Page