It seems that the docker container you are running needs to whitelist IP of your machine i.e. 172.28.0.1. So, when starting docker container using docker run, you can whitelist your IP using --whitelist 172.28.0.1 .
Something like: docker run -it -p 8080:8080 -p 9080:9080 -p 8000:8000 dgraph/standalone:latest --whitelist 172.28.0.1
auth_token is for securing alter operations so as to allow alter operations only from clients who provide auth_token.
You would need to additionally --whitelist the IP and then curl command suggested by @Rahul would work. Whitelisting is necessary because admin operations can only be done from the host machine where Dgraph is running (see whitelisting-admin-operations).
Thanks, it makes sense in production, but I have trouble with, setup dev environment (I run dev server on a remote machine).
I can’t use Postman for the schema update. And ratel-ui doesn’t connect to the server. Maybe you have a useful example for this case?
As you have already figured out, if you have setup your dev environment on a remote machine and your local ip is not whitelisted, you can’t perform admin operations. We can see how this can be an issue while doing local development. Is it possible to whitelist the IP range of your local network? If not, then maybe we can provide a way to turn off the IP whitelisting so that you can do operations like updateGQLSchema from your local machine on a remote server.