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
sudo docker exec postgres psql -U postgres my_db_name < dump.sql