February 2019
Intermediate to advanced
240 pages
5h 25m
English
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:
We introduced the docker-compose.yml and its format.
We created our own docker-compose.yml for our Rails app, including a locally mounted volume to allow live editing of local files.
We saw how to spin up our entire app and start the Rails server by using the command:
| | $ docker-compose up |
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 ...