All notes
Every note published on PostgreSQL in Production
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.

