I successfully set up zero, two alpha servers, and Ratel according to those docs, except that in the alpha server Docker commands, I added the whitelist option like this:
docker run -it -p 7080:7080 --network dgraph_default -p 8080:8080 -p 9080:9080 -v ~/server1:/dgraph dgraph/dgraph:master dgraph alpha --whitelist=<my laptop's IP> --lru_mb=3300 --zero=<my digital ocean droplet IP>:5080 --my=<my digital ocean droplet IP>:7080
I could go to the Ratel UI and add and remove data. But when I tried to alter the schema, I got a different error:
Could not alter schema: Failed to fetch
I went back to the Digital Ocean droplet and saw that both alpha servers had stopped running.
Is that command to run the alpha server with the whitelisted IP correct? I saw that in the example there was a space instead of an equals for passing the option, but using a space caused the server to just run for a few seconds and crash.
Looks like there are issues with the cluster. You could check the alpha health @ /health?all and zero state @ /state of the cluster as you issue commands; this might help in identifying the exact issue.
This would start a single container with Dgraph Alpha , Dgraph Zero and Ratel running in it. You would find the Dgraph data stored in a folder named dgraph of your home directory .