Infra
One server, about ten services
Everything under “ritoche.site” runs on a machine I administer. Here is how a request gets in, how code gets there and how I know it is running.
Entry
Reverse proxyTLS certificates
One subdomain per service, everything goes through the reverse proxy.
Services
Containerised applicationsAnalyticsAutomations
Containers are connected to the reverse proxy over a dedicated network.
Delivery
Continuous integrationImage registryPull-based deployment
CI builds, the server pulls. It never compiles anything.
Watch
MonitoringUptime alertsHealth routes
Each application exposes the version it is actually serving.
The rules I set myself
- The server does not compileImages are built elsewhere, tested, then pulled. A failed build cannot break what is running.
- A deployment is a commitNothing outside commands the server: it watches the repository instead. Rolling back means reverting a commit.
- One image, every environmentConfiguration is injected when the container starts. Changing domain needs no rebuild.
- Cookie-free analyticsSelf-hosted: no banner, no data sent to a third party.
- Visible automationsRecurring jobs go through an automation tool rather than scripts forgotten in a crontab.