Chapter 11. Services with Docker and Compose

 

This chapter covers

  • Understanding services and how they relate to containers
  • Basic service administration with Docker Swarm
  • Building declarative environments with Docker Compose and YAML
  • Iterating projects with Compose and the deploy command
  • Scaling services and cleaning up

Today most of the software we run is designed to interact with other programs, not human users. The resulting webs of interdependent processes serve a collective purpose such as processing payments, running games, facilitating global communications, or delivering content. When you look closely at that web, you’ll find individual running processes that might be running in containers. Those processes are allocated memory and given time on the CPU. They are bound to a network and listen for requests from other programs on specific ports. Their network interface and port are registered with a naming system so they are discoverable on that network. But as you expand your view and examine more processes, you’ll notice that most of them share common characteristics and goals.

11.1. A service “Hello World!”

11.2. Declarative service environments with Compose V3

11.3. Stateful services and preserving data

11.4. Load balancing, service discovery, and networks with Compose

Summary

sitemap