DevOps / SRE / Platform Engineer / Stage 5 · Packaging services
Connect containers, networks and volumes
"Already know" meets prerequisites. "Not relevant" removes the topic from your total but leaves what builds on it waiting.
Self-check
- Run a database with Docker Compose so its data survives replacing the container, its port is reachable from this machine only, and Docker knows when it is ready.
- Evidence to include: Keep the Compose file and the verifier's result from before and after replacing the container. Note why down -v would have lost the data.
Try it without the material first, then compare. Save your answer in your notes below. Report a problem with this self-check
Learning activities
3 activities- Not doneHow Compose works (opens another site)
The Compose model of services, networks and volumes, and the up, down and ps commands.
6 min - Not doneVolumes (opens another site)
Why data in a volume outlives the container, and named versus anonymous volumes; read the lifecycle and Compose sections.
6 min - Not done40 min