Repository navigation
Keep the local radiator's Postgres data on the host - #63
Merged
Merged
Conversation
The named volume was lost on docker compose down -v, volume prunes and Docker resets. Bind-mount ./data/radiator-db (or RADIATOR_DB_DIR) instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S2yuRBF3brDsXf6qKDNsQB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
In
docker compose, the radiator's Postgres kept its data in the named volumeradiator-db. That volume is lost ondocker compose down -v, ondocker volume pruneand when Docker Desktop is reset, so the local results history didn't reliably survive.This PR bind-mounts a host directory instead:
compose.yml:radiator-dbstores its data in${RADIATOR_DB_DIR:-./data/radiator-db}. Theradiator-dbnamed volume is removed..gitignore: ignoresdata/.README.md: the "Stop it" note now says where the data lives and how to wipe it (docker compose down, then delete the directory).The Helm deployment is unchanged. Its Postgres was already on a PersistentVolumeClaim.
Migrating existing local data
Existing results in the old volume aren't moved automatically. To keep them, copy them across before the next
up. The volume is usually namedtestharness_radiator-db(docker volume lsshows it):Testing
docker compose configvalidates.docker compose down -v, start it again and check the data is still there.Generated by Claude Code