How to nextcloud with postgres in docker?

no need to expose the port. just run pg_dump in the container.

further explanation here: