Skip to content

Instantly share code, notes, and snippets.

@dpeek
Created December 17, 2017 14:43
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 dpeek/e5247f41b10058877e0b761599d28c2c to your computer and use it in GitHub Desktop.
Save dpeek/e5247f41b10058877e0b761599d28c2c to your computer and use it in GitHub Desktop.
Docker Compose Dgraph
version: '3'
services:
data:
image: dgraph/dgraph:master
volumes:
- dgraph:/dgraph
zero:
image: dgraph/dgraph:master
command: dgraph zero --port_offset -2000 --my=zero:5080
restart: on-failure
volumes:
- dgraph:/dgraph
server:
image: dgraph/dgraph:master
command: dgraph server --my=server:7080 --memory_mb=2048 --zero=zero:5080
restart: on-failure
volumes:
- dgraph:/dgraph
ports:
- 8080:8080
- 9080:9080
volumes:
dgraph:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment