How to use Ratel with Docker in version 21.03.1

I would like to use Ratel on my freshly installed Docker image.
Docs say it should run on port 8000. It doesn’t.
Soe internet posts say it should run on port 8080. It doesn’t.

Though, with a browser to :8080 gives:
“Dgraph browser is available for running separately using the dgraph-ratel binary”

I can also use But how to connect to my server?
Using my IP address clean, or with port 8000 or 8080 doesn’t work neither: “not connected”.
Default passowrd for ACL seems to be “password” but should not be necessary.

(PS, SSH to the server and Curl’ing works so the server is running. ports are open)

Hi, see the ratel docs here:

Using is just like running a local ratel, so you should just be interested in the connection settings. For instance, connections to a local environment would be to use the server connection box as (the scheme is important to put in)

No password or anything like that is necessary unless you have specifically enabled ACLs (an enterprise feature)

There was a problem with the one-line docker install here:
After re-installing using docker pull it worked.

I have installed dgraph on a DigitalOcean Docker Droplet. Installing and using docker run doesn’t provide unix with a command line dgraph command. So I cannot do any configuration. It says:

Command 'dgraph' not found, but can be installed with: snap install dgraph

How can I now alter my settings? For example: protect access with a password / API key :wink:


# This Docker Compose file can be used to quickly bootup Dgraph Zero
# and Alpha in different Docker containers.

# It mounts /tmp/data on the host machine to /dgraph within the
# container. You can change /tmp/data to a more appropriate location.
# Run `docker-compose up` to start Dgraph.
version: "3.2"
    image: dgraph/dgraph:latest
      - /tmp/data:/dgraph
      - 5080:5080
      - 6080:6080
    restart: on-failure
    command: dgraph zero --my=zero:5080
    image: dgraph/dgraph:latest
      - /tmp/data:/dgraph
      - 8080:8080
      - 9080:9080
    restart: on-failure
    command: dgraph alpha --my=alpha:7080 --zero=zero:5080 --security whitelist=
    image: dgraph/ratel
      - 8000:8000
    command: dgraph-ratel


1 Like