feat: docker dev postgres for expo-axum via db-ctrl devshell utility #3
Loading…
Reference in a new issue
No description provided.
Delete branch "t3code/185ef044"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replaces the nix-run postgres app with docker for the expo-axum dev
database, and upgrades the devshell:
db-ctrldevshell utility withup/down/wipe: manages astarter-dbcontainer frompostgres:18-alpine, publishes on127.0.0.1:5432, waits on
pg_isready, keeps data in thestarter-db-datavolume. Volume mounts at/var/lib/postgresql—the 18+ images hard-error on the old
/datapath.DATABASE_URL=postgresql://starter:starter@127.0.0.1:5432/starter(overridable), sourced from the same nix let-block as db-ctrl so
they cannot drift.
apps.db, thepostgresqldevshell package, and the.data/gitignore entry; READMEs + api.ts comment updated.
Verified: shellcheck; live up/down/wipe cycle incl. persistence and
real client connections; devshell smoke (motd + export + db-ctrl);
root
nix fmt+nix flake check; template copynix flake check+nix run .#validate.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.