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 ...

Get Docker for Rails Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.