Service Patterns & Conventions
Disk Layout
- Separating runtime from data reduces blast radius and makes backups/restore clearer.
- On the core server, one NVMe is dedicated to OS, one to services, one SATA SSD to persistent data and one for backups
/(OS)/srv/docker/srv/<service>data/<service>/backups
Docker conventions
Basic rules / layout
- Compose files live in:
/srv/<service>/docker-compose.yml - Persistent volumes in
/data/<service>/... - data-root in
/srv/docker