Skip to content

Keep the local radiator's Postgres data on the host - #63

Merged
maximusunc merged 1 commit into
mainfrom
claude/nice-noether-ev93bp
Oct 30, 2026
Merged

maximusunc merged 1 commit into
mainfrom
claude/nice-noether-ev93bp

Conversation

@maximusunc

Copy link
Copy Markdown
Collaborator

Summary

In docker compose, the radiator's Postgres kept its data in the named volume radiator-db. That volume is lost on docker compose down -v, on docker volume prune and 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-db stores its data in ${RADIATOR_DB_DIR:-./data/radiator-db}. The radiator-db named volume is removed.
  • .gitignore: ignores data/.
  • 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 named testharness_radiator-db (docker volume ls shows it):

mkdir -p data/radiator-db && docker run --rm -v testharness_radiator-db:/from -v "$PWD/data/radiator-db":/to alpine cp -a /from/. /to/

Testing

  • docker compose config validates.
  • Not yet run against a live Docker daemon: start the stack, add some data, run docker compose down -v, start it again and check the data is still there.

Generated by Claude Code

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
@maximusunc
maximusunc merged commit 9ad9579 into main Oct 30, 2026
4 checks passed
@maximusunc
maximusunc deleted the claude/nice-noether-ev93bp branch October 30, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants