how to copy postgres database to postgres in docker container code example
Example: pgrestore schema backup to a container
docker exec -i pg_container_name psql --username pg_username [--password pg_password] database_name < /path/on/your/machine/dump.sql