Hi @amipandatdoc,
Docker compose runs a container. So to access this you have to use docker exec docker exec | Docker Documentation
You need to get acquainted with Docker. Or maybe install Dgraph direct on your machine.
see https://docs.dgraph.io/get-started/#from-install-scripts-linux-mac
Btw, Please open new topics for new questions.
Cheers.