# Session 0005: rebuild.py Rewrite & App Volume Mount **Date:** 2026-02-22 **Status:** Completed **Origin:** MDF Webseiten session 0035 --- ## Work Done - [x] Diagnosed root cause: dashboard was calling Coolify API stop/start on a placeholder test-nginx, not actual MDF containers - [x] Rewrote `rebuild.py` to use `ops rebuild` CLI via host nsenter bridge (no Coolify API) - [x] Updated `ops rebuild` to do `docker compose down` before `up -d --build` - [x] Added safety backup step to Recreate operation - [x] Added `app/` directory as volume mount to ops-dashboard compose (enables live edits without rebuild) - [x] Added ops-dashboard git remote at `git.mnsoft.org/git/APPS/ops-dashboard.git` - [x] Committed and pushed all server repos (MDF, infrastructure, ops-dashboard) ## Key Decisions / Learnings - `app/` as volume mount is essential for iterating on dashboard backend without container rebuilds - `static/` was already volume-mounted; `app/` mount completes the live-edit setup - Coolify API is unreliable for locally-built images — ops CLI via nsenter bridge is the correct pattern - Safety backup before Recreate ensures data can be recovered if the restore fails --- **Tags:** #Session #OpsDashboard #Infrastructure