Created
July 20, 2020 03:58
-
-
Save xgenvn/e898f620040709ee6c31fa67a38b002e to your computer and use it in GitHub Desktop.
dgraph docker-compose example
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
| 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