Skip to content

Instantly share code, notes, and snippets.

@u007
Created November 25, 2018 09:37
Show Gist options
  • Save u007/f47f9e42ae4f7a94b29c542955d698bc to your computer and use it in GitHub Desktop.
Save u007/f47f9e42ae4f7a94b29c542955d698bc to your computer and use it in GitHub Desktop.
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