I just change memory_mb and having the same issue. Here’s my docker file for reference:
version: "3"
networks:
dgraph:
services:
zero:
image: dgraph/dgraph:nightly
volumes:
- data-volume:/dgraph
ports:
- 5080:5080
- 6080:6080
networks:
- dgraph
deploy:
placement:
constraints:
- node.hostname == AP-GRAPH-1
restart: on-failure
command: dgraph zero --my=zero:5080 --replicas 3
server_1:
image: dgraph/dgraph:nightly
hostname: "server_1"
volumes:
- data-volume:/dgraph
ports:
- 8080:8080
- 9080:9080
networks:
- dgraph
deploy:
placement:
constraints:
- node.hostname == AP-GRAPH-1
restart: on-failure
command: dgraph server --my=server_1:7080 --lru_mb=17192 --zero=zero:5080
server_2:
image: dgraph/dgraph:nightly
hostname: "server_2"
volumes:
- data-volume:/dgraph
ports:
- 8081:8081
- 9081:9081
networks:
- dgraph
deploy:
placement:
constraints:
- node.hostname == AP-GRAPH-2
restart: on-failure
command: dgraph server --my=server_2:7081 --lru_mb=17192 --zero=zero:5080 -o 1
server_3:
image: dgraph/dgraph:nightly
hostname: "server_3"
volumes:
- data-volume:/dgraph
ports:
- 8082:8082
- 9082:9082
networks:
- dgraph
deploy:
placement:
constraints:
- node.hostname == AP-GRAPH-3
command: dgraph server --my=server_3:7082 --lru_mb=17192 --zero=zero:5080 -o 2
ratel:
image: dgraph/dgraph:nightly
hostname: "ratel"
ports:
- 8000:8000
networks:
- dgraph
restart: on-failure
command: dgraph-ratel
volumes:
data-volume: