mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 02:54:26 +00:00
is_database() compared the whole repository part of the image reference against postgres, mariadb, redis, memcached and mongo. Every reference with a registry or namespace prefix, every derivative image and every locally built `<engine>_custom` image therefore counted as application data and went to the mass storage. On a local stack the central databases report `postgres_custom:18` and `openldap_custom:13.7-slim`, both classified False and moved to the HDD. The check now takes the last path component of the reference, drops digest, tag and a `_custom` suffix, and compares it against the engines the svc-db-* providers and the app-local databases run: elasticsearch, mariadb, memcached, mongo, mysql, openldap, opensearch, postgis, postgres, qdrant, rabbitmq, redis, typesense, valkey. Volumes the script already symlinked stay where they are; a database volume misplaced on the HDD has to be moved back by hand. Fixes #1163 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>