Technical choices
Each choice starts from a question. The diagram sums up the reasoning; the table gives the alternatives that were ruled out.
| Decision | Alternatives ruled out | Why |
|---|---|---|
Monorepo: api/, web/, infra/ in one repository | one repository per application | A single pipeline sees everything; an API change and its display ship in the same merge request; rules: changes avoids re-running everything |
| GitLab CI | GitHub Actions, Jenkins | Required by the brief (GitLab server provided); integrated with the repository, registry and environments |
| Self-hosted runners | GitLab.com shared runners | Required by the brief; no minutes quota; deploy runners have to be on the servers anyway |
| docker executor for lint, test and build | shell executor everywhere | Each job starts from a clean image; no Node or Python to install on the machine |
| shell executor on each server to deploy | a job connecting over SSH | No SSH deploy key to store in GitLab, so none to leak |
| Docker Swarm in prod | scripted blue/green behind Traefik; Kubernetes | start-first + health check + rollback give zero downtime without a home-made script; Kubernetes is oversized for one machine |
| Docker Compose in dev | Swarm in dev too | Rebuilding dev images on the spot is simpler; a short outage in dev is acceptable |
| Traefik | nginx, Caddy | Automatic Let's Encrypt certificates; routes reloaded without restart; part of the plan from the start |
| Traefik routes as files | Docker labels | Dev and prod routes readable side by side; independent of Compose or Swarm |
| Ansible + Vault | commands by hand, shell scripts, Terraform | Reproducible and idempotent; encrypted secrets live next to the config; Terraform does not configure the inside of machines |
| Two VMs, one per environment | one VM for dev and prod | A dev problem does not affect prod; a dev runner cannot deploy to prod |
| Google Cloud | another host, a classic VPS | Simple Ubuntu VMs, fixed public IPs |
| Django + DRF | Node/Express, FastAPI | Patrice's strength: less risk on the code, more time for DevOps, which is what is graded |
| Next.js | plain React (Vite), Vue | Jean-Baptiste's strength; server rendering; standalone build ideal for Docker |
| PostgreSQL | MySQL, SQLite in prod | Robust, well supported by Django, light official image |
| No Datadog (removed) | Datadog CI Visibility, planned as a bonus | Removed on 9 November (chore(infra): remove Datadog and base role) to focus on deployment. See Limits |