Restoring Data
Copy the SQL backup into the database container and restore it with psql.
Copy the database dump into the container:
docker cp filename.sql id_container:/filename.sql
Open a shell in the database container:
docker exec -it id_container /bin/sh
Restore the backup:
psql -U postgres -f filename.sql