Practical Container First demo
Pedagogical example of a containerized project with Compose, persistence, backup/restore, and separation between Git definition and operational state.
Pedagogical example of a containerized project with Compose, persistence, backup/restore, and separation between Git definition and operational state.
This demo turns Container First into a tangible example: a web application and PostgreSQL deployed with Compose, with persistent data and an explicit backup-and-restore path.
An example, not a universal template
The demo-crm project separates Git definition, executable deployment, ephemeral container filesystem, and persistent state. Service count, proxy, database, networks, and observability remain architecture decisions.
- Git → versioned deployment.
- Replaceable containers.
- Persistence outside ephemeral filesystems.
- Local backup is staging, not the only defense.
Recovery and drift are operational concerns
The example includes operational commands, backup/restore, and a deterministic way for a person or agent to inspect state. The pedagogical goal is a VM that can be rebuilt and audited without tribal knowledge.
- Reproducible Compose.
- .env.example without secrets.
- Known and verifiable restore.
- Compare observed state with the repo to detect drift.
Contextual glossary+
DCP operational default for reproducible and normally containerized deployments on directly controlled Linux infrastructure, unless a documented technical exception applies.
Technical act of placing a version into an environment.
Proof of an observed or executed result; not an agent assertion.
