Beyou Dev Env

Beyou Dev Env

This repository contains no application code. It is the orchestration layer: a base Compose file with Postgres and the shared network, plus four overlays that stack on top of it.

The overlays

The scripts

up-dev.sh and up-prod.sh (both accepting --monitoring), down.sh, the loud-failure reset-db.sh, and bootstrap-glitchtip.sh, which creates and reconciles the error tracker's organization, projects, twelve uptime monitors, three heartbeats, and the alert rules from code.

backup.sh and restore-check.sh are the pair that matter when the disk does. The first dumps the database, the uploads volume, and .env to an encrypted restic repository offsite plus a plain local copy; the second restores the newest snapshot into a scratch database and compares row counts against the live one, because an untested backup is a directory that makes you feel better. Both run from systemd timers, nightly and weekly.

Deep dives

The infrastructure and monitoring architecture topics document this repository end to end, from the laptop it all runs on to the alert that fires when the snapshot scheduler goes quiet.