7080 is not valid address

I am trying to install Dgrpha with Docker in different ports.And Zeros are working but alphas are not.Just like this

CONTAINER ID        IMAGE                  COMMAND                  CREATED             STATUS                                  PORTS                                                                NAMES
7628dbc67369        dgraph/dgraph:latest   "dgraph alpha --my=a…"   39 seconds ago      Restarting (1) Less than a second ago                                                                        server_alpha_law_1
be3f22a347ce        dgraph/dgraph:latest   "dgraph-ratel"           39 seconds ago      Up 38 seconds                           8080/tcp, 0.0.0.0:8001->8001/tcp, 9080/tcp                           server_ratel_law_1
0d5a8c560e68        dgraph/dgraph:latest   "dgraph zero --my=ze…"   39 seconds ago      Up 37 seconds                           0.0.0.0:5081->5081/tcp, 8080/tcp, 0.0.0.0:6081->6081/tcp, 9080/tcp   server_zero_law_1

And compose.yaml

version: "3.2"
services:
  zero_info:
    image: dgraph/dgraph:latest
    volumes:
      - /home/server/dgraph_data/info:/dgraph
    ports:
      - 5081:5081
      - 6081:6081
    restart: on-failure
    command: dgraph zero --my=zero_info:5080 -o 1
  alpha_info:
    image: dgraph/dgraph:latest
    volumes:
      - /home/server/dgraph_data/info:/dgraph
    ports:
      - 8081:8081
      - 9081:9081
    restart: on-failure
    command: dgraph alpha --my=alpha_info:7080 -o 1 --lru_mb=2048 --zero=zero_info:5080 -o 1
  ratel_info:
    image: dgraph/dgraph:latest
    ports:
      - 8001:8001
    command: dgraph-ratel

And dokcers logs:docker1.log (124.4 KB)

@Soultrans, The problem is with your --my flag. The my flag is not used to set the port. It is used to just let alpha know on what IP:port it is running so that it can be used by other nodes to communicate with this alpha.
The port is set by the -o (offset) flag.
So, setting -o 1 means the port is default port + 1

version: "3.2"
services:
  zero_info:
    image: dgraph/dgraph:latest
    volumes:
      - /home/server/dgraph_data/info:/dgraph
    ports:
      - 5081:5081
      - 6081:6081
    restart: on-failure
    command: dgraph zero --my=zero_info:5081 -o 1
  alpha_info:
    image: dgraph/dgraph:latest
    volumes:
      - /home/server/dgraph_data/info:/dgraph
    ports:
      - 8081:8081
      - 9081:9081
    restart: on-failure
    command: dgraph alpha --my=alpha_info:7081 -o 1 --lru_mb=2048 --zero=zero_info:5081
  ratel_info:
    image: dgraph/dgraph:latest
    ports:
      - 8001:8001
    command: dgraph-ratel

Can you try using this config?

Thank you for your assistance!

18 posts were split to a new topic: How to import data into new cluster