Automatically connect pgAdmin to a PostgreSQL volume on which there is a database and automatically load a schema present on a .sql file with Docker Compose - General Discussions - Docker Community Forums
Run a database in a Docker container | IntelliJ IDEA Documentation