Networks and Volumes in Compose

LEVEL 0

The Problem

You’ve defined services. They’re running. But how do they talk to each other? How does the web server reach the application server? How does the app reach the database?

And what about data? Your database stores data in /var/lib/postgresql/data. When the container stops, that data disappears. How do you persist it?

Networks solve service-to-service communication.
Volumes solve data persistence.

Engine status: planned. The shell remains visible while the artifact execution is prepared.