I am able to use docker-compose -f postgres.yaml build to build the below file and bring it up, I can login successfully via
docker-compose -f postgres.yaml build
docker exec -it