Capstone requirements and architecture
Worked example
This is an offline lesson. Data are fictional and Docker commands are unexecuted. Any optional execution requires an authorized disposable VM, a verified context, synthetic data, restricted access and no external transmission. Do not collect secrets or private output. Before any separately authorized Docker query, verify the effective endpoint and builder (including environment overrides), not just the context name. Use only disposable lab resources; a failed check is a stop condition, not permission to retry against a different host.
Client (docker compose exec in proxy) -> proxy:8080 [front, back] -> api:8000 [back only] -> SQLite /data/notes.db [volume] -> /run/secrets/write_token [synthetic]No published ports; both networks internal.Acceptance: healthy services, correct list, unauthorized write rejected,proxy write rejected, persistence across replacement, verified restore.See project/starter/ and project/reference/.Follow the dependency graph: image preparation precedes service startup; the API initializes its database and validates its configuration before readiness; the proxy checks the API. A single SQLite writer service is appropriate for this small local exercise; scaling multiple writers across nodes is not a goal. Separate the front and back networks, with only the proxy attached to both. The administrative write route belongs to the backend and requires a synthetic token; the proxy does not forward it. Network membership is not authentication. Define acceptance criteria before implementation, and record actual evidence separately from planned checks. The standard-library HTTP implementation is educational and not suitable for Internet-facing production. The proxy is a fixed read-only HTTP interface, not a general reverse proxy or a host security boundary. Its upstream success does not prove that the response has the intended application schema. Check the exact JSON contract and verify that failed writes leave the synthetic database unchanged.
Common mistake
A running container is not proof of a functioning application. Define observable HTTP, security, persistence and recovery outcomes.
Manual practice
Use the starter acceptance template to draw the dependency graph, identify trust boundaries and write a positive and negative check for each interface. Compare against the reference requirements after completing your draft.
Worksheet: lab-fixtures/docker-professional-capstone/01-requirements/scenario.txt. Project: lab-fixtures/docker-professional-capstone/project/.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Capstone requirements and architecture — Knowledge check
Interpret capstone evidence and make a safe operational decision.
Which evidence shows the service works?
Why is the proxy attached to two networks?
Is this HTTP server suitable for public production as supplied?