Ratel cannot connect to port 8082 (Docker doesn't listen)

Hi there!

My port 8080 was already used by another DB I’m testing so I change docker.composer to use port 8082, but it’s not working in ratel, I tried localhost and 127.0.0.1 with many possibilities. /api, etc)

Error:
Not connected (http://localhost:8082/)

docker-composer.yml:

  GNU nano 2.5.3                            File: docker-compose.yml                                                              

version: "3.2"
services:
  zero:
    image: dgraph/dgraph:latest
    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:latest
    volumes:
      - type: volume
        source: dgraph
        target: /dgraph
        volume:
          nocopy: true
    ports:
      - 8082:8082
      - 9080:9080
    restart: on-failure
    command: dgraph server --my=server:7080 --memory_mb=2048 --zero=zero:5080
  ratel:
    image: dgraph/dgraph:latest
    volumes:
      - type: volume
        source: dgraph
        target: /dgraph
        volume:
          nocopy: true
    ports:
      - 8000:8000
    command: dgraph-ratel

volumes:
  dgraph:
sudo docker-compose down
sudo docker-compose up -d

Creating network "test" with the default driver
Creating test_ratel_1  ... done
Creating test_server_1 ... done
Creating test_zero_1   ... done

netstat -lnptu
tcp6 0 0 :::8082 :::* LISTEN 31268/docker-proxy

I just noticed it’s not listening on ipv4.

Hmm, I never used docker before neither I’m starting to see the benefit of it though, so excuse me if this is a noob mistke.

I think you server ports config should have 8082:8080 instead of 8082:8082 as the server is still running on port 8080, but you want to bind it to port 8082.

So external:internal.
Darn! You’re good! It’s working - thank you so much!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.