Last active
September 6, 2019 01:21
-
-
Save danielmai/0ee8ee8547336887e7a94529be0d834d to your computer and use it in GitHub Desktop.
Docker Compose to run Dgraph, bind-mounting data directories to $HOME/dgraph
This file contains 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
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