postgresql docker
PostgreSQL in Production notes about postgresql docker
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.

