postgres docker compose - ghdrako/doc_snipets GitHub Wiki
docker run --name basic-postgres --rm -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e PGDATA=/var/lib/postgresql/data/pgdata -v /tmp:/var/lib/postgresql/data -p 5432:5432 -it postgres:14.1-alpine
docker exec -it basic-postgres /bin/sh
$ psql --username postgres
https://github.com/docker-library/docs/tree/master/postgres#initialization-scripts