I still wasn’t able to alter the schema. I followed the docs here to run Dgraph in Docker: https://dgraph.io/docs/master/deploy/single-host-setup/#run-using-docker
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.