- Run your compose with
docker compose up
- Get the name of your compose network with
docker network ls
- The network name will be in the format of
<project>_default
unless changed
- The network name will be in the format of
- Run the pgadmin command
docker run --net <compose_network> -v pgadmin4:/home/pgadmin/.pgadmin -p 5050:5050 --link <pg_container_name>:<pg_container_name> --rm meedan/pgadmin
- Browse to
http://localhost:5050/
- Login with - admin@pgadmin.org:pgadmin
This is based on the following sources -