PostgreSQL Operations
PostgreSQL in Production notes about PostgreSQL Operations
Why PostgreSQL Docker Data Disappears After Container Recreation
Mount a named volume at the path required by your image’s PostgreSQL major version, then reuse it when recreating the container. Keep application traffic on a Docker network and wait for initialization.

