Skip to content

Instantly share code, notes, and snippets.

@onemenzel
Created October 25, 2017 17:48
Show Gist options
  • Save onemenzel/00d4155dc680a7695cb7bf50f1a741ef to your computer and use it in GitHub Desktop.
Save onemenzel/00d4155dc680a7695cb7bf50f1a741ef to your computer and use it in GitHub Desktop.
docker-compose file for a simple dgraph setup
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
@dotf
Copy link

dotf commented Nov 12, 2017

Thank you! Really helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment