Frontend
The frontend serves the user interface and often talks to the backend through HTTP requests.
This page explains how multiple connected services become one Docker-managed system instead of a single isolated app container.
The frontend serves the user interface and often talks to the backend through HTTP requests.
The backend handles APIs, business logic, validation, and communication with storage or other services.
The database stores persistent data and needs extra attention around volumes, readiness, and backups.
services:
frontend:
backend:
db:
Even this tiny shape already shows the main idea: one project can have several services with different responsibilities.
Treating a full stack application like one giant container often makes maintenance harder. Docker usually works better when each major service has its own clear role.
Next page: Lesson 21 goes deeper into the database side of Docker, especially persistence, backup thinking, and migrations.