Commit Graph
3 Commits
Author SHA1 Message Date
kevinveenbirkenbach 0fa4454599 fix(admin): purge_entity.sh also removes docker volumes
Use `docker compose down -v` to ensure named and anonymous volumes
belonging to the stack are removed during purge.

https://chatgpt.com/share/696e2523-77d8-800f-bc3d-b81d628e1e2a
2026-01-19 13:35:40 +01:00
kevinveenbirkenbach 63bf2f7c62 administration: make DB drop best-effort and allow purging postgres/mariadb stacks safely
- Add best-effort helpers for Postgres and MariaDB database drops
- Avoid connecting to the target DB when dropping Postgres (use template1 for 'postgres')
- Ignore DB drop errors and continue with purge (compose down + rm -rf)
- Protect MariaDB system databases from being dropped
- Update script header to reflect best-effort behavior
2026-01-18 17:46:46 +01:00
kevinveenbirkenbach 0d8bf44c01 scripts/administration: add purge_entity helper to remove stacks + optional DB drop
- Support purging multiple stacks in one run
- Best-effort detect postgres/mariadb from .env and drop DB if found
- Always run compose down and delete /opt/docker/<stack>/volumes + stack dir
- Skip DB drop with warning when no backend is detected

https://chatgpt.com/share/696cfcd5-2b84-800f-a386-b7d1d38d68b7
2026-01-18 16:31:25 +01:00