Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
dgraph docker compose
version: "3.2"
services:
dzero:
image: dgraph/dgraph:v1.0.10
volumes:
- "./dgraph0:/dgraph"
ports:
- 5080:5080
- 6080:6080
restart: on-failure
command: dgraph zero --bindall --my dzero:5080 --replicas 3
dnode1:
image: dgraph/dgraph:v1.0.10
volumes:
- "./dnode1:/dgraph"
ports:
- 8080:8080
- 9080:9080
expose:
- 9080
- 8080
- 7080
restart: on-failure
command: dgraph server --my dnode1:7080 --lru_mb 2048 --zero dzero:5080
depends_on:
- dzero
dnode-ui:
image: dgraph/dgraph:v1.0.10
volumes:
- "./dgraph-ui:/dgraph"
ports:
- 8000:8000
command: dgraph-ratel -addr http://localhost:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.