How to create multiple dgraph instance locally? For dev, test environment

I’m trying to create multiple instance of dgraph locally using Docker. How can we create multiple instances of dgraph using docker-compose files?

I would like to create at least 2 docker-compose files for dev and test environment.
I tried changing ports but only one dgraph instance is working and able to connect to using

Can anyone help or provide two samples of docker-compose files?

Share what you have tried. And we can fix it.