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.:
version: "3.2" services: zero: image: dgraph/dgraph:latest volumes: - ./_dgraphdata:/dgraph ports: - 3001:5080 - 3002:6080 restart: on-failure command: dgraph zero --my=zero:3001 server: image: dgraph/dgraph:latest volumes: - ./_dgraphdata:/dgraph ports: - 3100:8080 - 3101:9080 restart: on-failure command: dgraph server --my=server:7080 --lru_mb=2048 --zero=zero:3001 ratel: image: dgraph/dgraph:latest ports: - 3200:8000 command: dgraph-ratel
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
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