fix(cli): mon clean now properly removes containers and volumes
Summary
- Fix
mon cleanto properly remove containers and volumes usingdocker-compose down -v - Clean up orphaned volumes from previous installs with different project names
- Add
--keep-volumesoption to preserve data if needed
The previous implementation only used docker volume prune which doesn't remove volumes attached to containers. This caused issues like Grafana password not working after reinstall (password stored in persisted grafana.db).
Test plan
-
Run
mon local-install, thenmon clean, verify all volumes are removed -
Run
mon local-installagain, verify Grafana password works -
Test
mon clean --keep-volumespreserves data
Relates to: https://gitlab.com/postgres-ai/platform/-/issues/346