I have docker-compose yaml file for postgres and pg admin. It is originally from https://linuxhint.com/postgresql_docker/ I tested with docker-compose up and edite
docker-compose up