Skip to content

Technical choices ​

Each choice starts from a question. The diagram sums up the reasoning; the table gives the alternatives that were ruled out.

DecisionAlternatives ruled outWhy
Monorepo: api/, web/, infra/ in one repositoryone repository per applicationA single pipeline sees everything; an API change and its display ship in the same merge request; rules: changes avoids re-running everything
GitLab CIGitHub Actions, JenkinsRequired by the brief (GitLab server provided); integrated with the repository, registry and environments
Self-hosted runnersGitLab.com shared runnersRequired by the brief; no minutes quota; deploy runners have to be on the servers anyway
docker executor for lint, test and buildshell executor everywhereEach job starts from a clean image; no Node or Python to install on the machine
shell executor on each server to deploya job connecting over SSHNo SSH deploy key to store in GitLab, so none to leak
Docker Swarm in prodscripted blue/green behind Traefik; Kubernetesstart-first + health check + rollback give zero downtime without a home-made script; Kubernetes is oversized for one machine
Docker Compose in devSwarm in dev tooRebuilding dev images on the spot is simpler; a short outage in dev is acceptable
Traefiknginx, CaddyAutomatic Let's Encrypt certificates; routes reloaded without restart; part of the plan from the start
Traefik routes as filesDocker labelsDev and prod routes readable side by side; independent of Compose or Swarm
Ansible + Vaultcommands by hand, shell scripts, TerraformReproducible and idempotent; encrypted secrets live next to the config; Terraform does not configure the inside of machines
Two VMs, one per environmentone VM for dev and prodA dev problem does not affect prod; a dev runner cannot deploy to prod
Google Cloudanother host, a classic VPSSimple Ubuntu VMs, fixed public IPs
Django + DRFNode/Express, FastAPIPatrice's strength: less risk on the code, more time for DevOps, which is what is graded
Next.jsplain React (Vite), VueJean-Baptiste's strength; server rendering; standalone build ideal for Docker
PostgreSQLMySQL, SQLite in prodRobust, well supported by Django, light official image
No Datadog (removed)Datadog CI Visibility, planned as a bonusRemoved on 9 November (chore(infra): remove Datadog and base role) to focus on deployment. See Limits