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)