# 7080 is not valid address

**URL:** <https://discuss.dgraph.io/t/7080-is-not-valid-address/10489>\
**Category:** Ratel\
**Tags:** kind:question\
**Created:** [September 21, 2020, 6:27am UTC](https://discuss.dgraph.io/t/7080-is-not-valid-address/10489 "2020-09-21T06:27:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soultrans](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/soultrans/32/4919_2.png) [@Soultrans](https://discuss.dgraph.io/u/Soultrans)\
**Post date:** [September 21, 2020, 6:27am UTC](https://discuss.dgraph.io/t/7080-is-not-valid-address/10489/1 "2020-09-21T06:27:44Z")

</div>

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

```auto
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

```auto
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](https://discuss.dgraph.io/uploads/short-url/ewOLmVsUIc7W0G9AFQU781hsqs9.log) (124.4 KB)

---

<div class="post-metadata">

**Author:** ![ahsan](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/ahsan/32/3517_2.png) [@ahsan](https://discuss.dgraph.io/u/ahsan)\
**Post date:** [September 21, 2020, 7:32am UTC](https://discuss.dgraph.io/t/7080-is-not-valid-address/10489/4 "2020-09-21T07:32:27Z")

</div>

@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`

```auto
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?

---

<div class="post-metadata">

**Author:** ![Soultrans](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/soultrans/32/4919_2.png) [@Soultrans](https://discuss.dgraph.io/u/Soultrans)\
**Post date:** [September 21, 2020, 7:45am UTC](https://discuss.dgraph.io/t/7080-is-not-valid-address/10489/5 "2020-09-21T07:45:42Z")

</div>

Thank you for your assistance！

---

<div class="post-metadata">

**Author:** ![chewxy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/chewxy/32/4339_2.png) [@chewxy](https://discuss.dgraph.io/u/chewxy)\
**Post date:** [September 23, 2020, 5:50am UTC](https://discuss.dgraph.io/t/7080-is-not-valid-address/10489/6 "2020-09-23T05:50:50Z")

</div>

18 posts were split to a new topic: [How to import data into new cluster](https://discuss.dgraph.io/t/how-to-import-data-into-new-cluster/10549)
