Skip to content

Instantly share code, notes, and snippets.

@xgenvn
Created July 20, 2020 03:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xgenvn/e898f620040709ee6c31fa67a38b002e to your computer and use it in GitHub Desktop.
Save xgenvn/e898f620040709ee6c31fa67a38b002e to your computer and use it in GitHub Desktop.
dgraph docker-compose example
version: "3.2"
services:
zero:
image: dgraph/dgraph:latest
volumes:
- ./.data/dgraph:/dgraph
ports:
- 5080:5080
- 6080:6080
restart: on-failure
command: dgraph zero --my=zero:5080
alpha:
image: dgraph/dgraph:latest
volumes:
- ./.data/dgraph:/dgraph
ports:
- 8080:8080
- 9080:9080
restart: on-failure
command: dgraph alpha --my=alpha:7080 --lru_mb=2048 --zero=zero:5080
ratel:
image: dgraph/dgraph:latest
ports:
- 8000:8000
command: dgraph-ratel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment