Last active
May 23, 2018 12:19
-
-
Save Pepeye/c69da3dd132d41eb725b0fd442f3afcb to your computer and use it in GitHub Desktop.
Installing dgraph - https://docs.dgraph.io/deploy/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pull the latest Dgraph version with | |
docker pull dgraph/dgraph | |
# Run dgraphzero - set <VOLUMEPATH> and <CONTAINERNAME> | |
# <VOLUMEPATH> can be current working direcotory pwd | |
# docker run -it -p 5080:5080 -p 6080:6080 -p 8080:8080 -p 9080:9080 -p 8000:8000 -v pwd:/dgraph --name <CONTAINERNAME> dgraph/dgraph dgraph zero | |
docker run -it -p 5080:5080 -p 6080:6080 -p 8080:8080 -p 9080:9080 -p 8000:8000 -v <VOLUMEPATH>:/dgraph --name <CONTAINERNAME> dgraph/dgraph dgraph zero | |
# In another terminal, now run dgraph | |
docker exec -it <CONTAINERNAME> dgraph server --lru_mb 2048 --zero localhost:5080 | |
# Run ratel(Dgraph UI) | |
docker exec -it <CONTAINERNAME> dgraph-ratel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment