My situation is that I would like to run multiple Dgraph docker containers on the same machine, but I’m a bit confused about the process of changing ports and using the port-offset.
I’ve tried to modify all the ports in the docker-compose file, e.g.:
but doing so results in the following error: groups.go:105: Error while connecting with group zero: rpc error: code = Unavailable desc = all SubConns are in TransientFailure
Tbh, I’m a bit confused about why zero and server have two ports, and I’m guessing it’s a problem that ratel doesn’t know what port server is running on.
The purpose of the docker-compose file I wrote above is that I would like to connect to port 3001, and I would like the admin interface to be available on port 3050
By any chance you could help provide 2 docker-compose files that could run on the same machine? Preferable where the ports for each docker-compose is closely aligned, e.g. 3000, 3001, 3002, 3003, 3004, 3005, 3006 for one file, and 3100, 3101, 3102, 3103, 3104, 3105, 3016 for the other, assuming this is even possible?
If I use the following docker-compose file then it runs (thanks to your --port offset but slightly modified the value), but cannot load the Dgraph browser, it just responds with text saying:
Dgraph browser is available for running separately using the dgraph-ratel binary
Ratel UI is a completely different Dgraph binary. It does not follow the use of the flag --port_offset. Using this flag affects only the binary you start with it.
It is possible for ratel to specify server port? If not, then I assume it would be impossible to simultaneously run two separate Dgraph instances on the same machine?
Oh wow… my bad… when I had opened localhost:3200 then I didn’t notice the change URL part… thanks a lot, the --port_offset also seem to work perfectly in terms of using very specific ports…
It was previously my understanding that using port_offset would offset all ports for zero+server+ratal, so that you would decrease/increase all of them simultaneously… but happy to know I was wrong about that
@tlmichael where you or anyone here able to create multiple docker-compose files to run multiple dgraph instance? I would like to be able to run instance for dev, test, and staging.