Created
October 25, 2017 17:48
-
-
Save onemenzel/00d4155dc680a7695cb7bf50f1a741ef to your computer and use it in GitHub Desktop.
docker-compose file for a simple dgraph setup
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' | |
services: | |
zero: | |
image: dgraph/dgraph | |
restart: always | |
volumes: | |
- ./data:/dgraph | |
command: dgraphzero --bindall=true --idx 1 --my "zero:8888" -w zw | |
client: | |
image: dgraph/dgraph | |
restart: always | |
depends_on: | |
- zero | |
working_dir: /dgraph | |
volumes: | |
- ./data:/dgraph | |
ports: | |
- 8080:8080 | |
- 8090:8090 | |
command: dgraph --idx 1 --peer "zero:8888" --my "client:12345" --bindall=true --memory_mb 2048 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you! Really helpful!