I have a dump.sql file that I would like to load with docker-compose.
docker-compose.yml:
services: postgres: environment: POSTGRES_DB: my_d
You can use pg_restore as well ... for example:
cat {BACKUP.SQL.File} | docker exec -i {working_container_name} pg_restore \ --verbose --clean --no-acl --no-owner -U {USER} -d {YOURDATABASE}