1Persisting Local Data
If you run Postgres in Docker for local development, remember that containers are ephemeral. If you stop the container, your test data vanishes. Always attach a local volume (e.g., -v ./pgdata:/var/lib/postgresql/data) so your test data survives reboots.
