Introducing Docker Swarm
Remember, we’re treating this virtual instance as if it were a production instance for our application. Our objective is to start our application on this instance so that it can be used to service real requests.
There are number of ways you could do this. For example, you could use low-level Docker commands to start the various containers for our application. However, having created a nice abstraction for our application with our docker-compose.yml file, that doesn’t sound appealing. If you’re thinking that we could use Compose directly to manage our app on this new instance, you’re close to where we’re headed.
The truth, though, is that Compose, as a tool, is really designed to help us during development. Once we get ...
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.
Read now
Unlock full access