Skip to content
Theory · Docker Compose · lesson 2 of 8

Services find each other by name

In a score the parts are labeled by instrument: "flute", "violin", not "third chair from the left". A musician may change seats, and the part stays the same. Compose services work the same way: one service finds another by name, not by the address its container got today.

In this lesson

  • The project network
  • The container port, not the published one
  • Common mistake
  • Key points