Cannot seem to run "Latest" Ratel UI with docker-compose up

What I want to do

I want to understand why I am not able to run the latest Ratel on localhost:8000 when I use: docker-compose up

but I am able to, when I run: docker run --rm -it -p 8000:8000 -p 8080:8080 -p 9080:9080 dgraph/standalone:v21.03.1 and even connecting to localhost on Dgraph Ratel Dashboard, which flickers with a 0.2 second preview of the latest Ratel UI and then goes to a blank screen.

I worked through the tutorial, to create a simple to-do-list and everything was working fine using the offline version, however, I am hoping to understand if there is reason/ am I running wrong commands?

What I did

I checked this discussion forum but no one has talked about being able to load the offline version and not the latest version. I might be missing out something big! But I did kill and restart all the containers. No luck.

Dgraph metadata

:honeybee: dgraph-react-todo-app$docker-compose up
Starting dgraph-react-todo-app_server_1 … done
Starting dgraph-react-todo-app_ratel_1 … done
Starting dgraph-react-todo-app_zero_1 … done
Attaching to dgraph-react-todo-app_ratel_1, dgraph-react-todo-app_server_1, dgraph-react-todo-app_zero_1
ratel_1 | 2021/08/21 04:53:42 Listening on port 8000…
server_1 | I0821 04:53:42.716208 1 init.go:88]
server_1 |
server_1 | Dgraph version : v1.0.13
server_1 | Commit SHA-1 : 691b3b35
server_1 | Commit timestamp : 2019-03-09 19:33:59 -0800
server_1 | Branch : HEAD
server_1 | Go version : go1.11.5

Blank screen when selecting Ratel Latest, only Local Bundle works.

Can you share the YAML?

Thanks @MichelDiz! Here it is:

version: "3.2"
services:
  zero:
    image: dgraph/dgraph:v1.0.13
    volumes:
      - type: volume
        source: dgraph
        target: /dgraph
        volume:
          nocopy: true
    ports:
      - 5080:5080
      - 6080:6080
    restart: on-failure
    command: dgraph zero --my=zero:5080
  server:
    image: dgraph/dgraph:v1.0.13
    volumes:
      - type: volume
        source: dgraph
        target: /dgraph
        volume:
          nocopy: true
    ports:
      - 8080:8080
      - 9080:9080
    restart: on-failure
    command: dgraph alpha --my=server:7080 --lru_mb=2048 --zero=zero:5080
  ratel:
    image: dgraph/dgraph:v1.0.13
    volumes:
      - type: volume
        source: dgraph
        target: /dgraph
        volume:
          nocopy: true
    ports:
      - 8000:8000
    command: dgraph-ratel

volumes:
  dgraph:

This is a pretty old image. You should use dgraph/ratel:latest. Old images aren’t compatible with dgraph/standalone:v21.03.1 - BTW, do not mix files from old versions with new ones. You mentioned standalone:v21.03.1 and now you shared a YAML with v1.0.13 pay attention for this. If you jump between versions, always clean the paths/folders/files related to it. Mean, start always from scratch.

1 Like

Upgrading worked a charm, I couldn’t connect with dgraph/ratel:latest but managed to connect to the latest version with dgraph/dgraph:latest! Thank you, I will do that at the start next time because yes it messed up the data :joy: