Skip to content

Instantly share code, notes, and snippets.

@danielmai
Last active September 6, 2019 01:21
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 danielmai/0ee8ee8547336887e7a94529be0d834d to your computer and use it in GitHub Desktop.
Save danielmai/0ee8ee8547336887e7a94529be0d834d to your computer and use it in GitHub Desktop.
Docker Compose to run Dgraph, bind-mounting data directories to $HOME/dgraph
version: "3.2"
services:
zero:
image: dgraph/dgraph:latest
volumes:
- type: bind
source: $HOME/dgraph
target: /dgraph
ports:
- 5080:5080
- 6080:6080
restart: on-failure
command: dgraph zero --my=zero:5080
server:
image: dgraph/dgraph:latest
volumes:
- type: bind
source: $HOME/dgraph
target: /dgraph
ports:
- 8181:8080
- 9080:9080
restart: on-failure
command: dgraph alpha --my=server:7080 --lru_mb=2048 --zero=zero:5080
ratel:
image: dgraph/dgraph:latest
volumes:
- type: bind
source: $HOME/dgraph
target: /dgraph
ports:
- 9000:8000
command: dgraph-ratel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment