Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Docker Deep Dive

You're reading from   Docker Deep Dive Zero to Docker in a Single Book

Arrow left icon
Product type Paperback
Published in Jul 2023
Publisher Packt
ISBN-13 9781835081709
Length 266 pages
Edition 2nd Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Nigel Poulton Nigel Poulton
Author Profile Icon Nigel Poulton
Nigel Poulton
Arrow right icon
View More author details
Toc

9: Multi-container apps with Compose

In this chapter, we’ll look at how to deploy multi-container applications using Docker Compose. We usually shorten it to just Compose.

We’ll split this chapter into the usual three parts:

  • The TLDR
  • The deep dive
  • The commands

Deploying apps with Compose - The TLDR

Modern cloud-native apps are made of multiple smaller services that interact to form a useful app. We call this the microservices pattern.

A microservices app might have the following seven independent services that work together to form a useful application:

  • Web front-end
  • Ordering
  • Catalog
  • Back-end datastore
  • Logging
  • Authentication
  • Authorization

Deploying and managing lots of small microservices like these can be hard. This is where Compose comes in to play.

Instead of gluing microservices together with scripts and long docker commands, Compose lets you describe everything in a declarative configuration file. You can use this file to deploy it...

You have been reading a chapter from
Docker Deep Dive - Second Edition
Published in: Jul 2023
Publisher: Packt
ISBN-13: 9781835081709
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image