Skip to content

Instantly share code, notes, and snippets.

@Pepeye
Last active December 1, 2018 12:47
Show Gist options
  • Save Pepeye/18f8c8b8e49f80be6ecf7a1b39883892 to your computer and use it in GitHub Desktop.
Save Pepeye/18f8c8b8e49f80be6ecf7a1b39883892 to your computer and use it in GitHub Desktop.
dgraph docker-compose file
version: "3.2"
services:
zero:
image: dgraph/dgraph:latest
volumes:
- type: volume
source: dgraph
target: /dgraph
volume:
nocopy: true
ports:
- 5080:5080
- 6080:6080
restart: on-failure
command: dgraph zero --my=zero:5080
server:
image: dgraph/dgraph:latest
volumes:
- type: volume
source: dgraph
target: /dgraph
volume:
nocopy: true
ports:
- 8080:8080
- 9080:9080
restart: on-failure
command: dgraph server --my=server:7080 --lru_mb=2048 --zero=zero:5080
ratel:
image: dgraph/dgraph:latest
volumes:
- type: volume
source: dgraph
target: /dgraph
volume:
nocopy: true
ports:
- 8000:8000
command: dgraph-ratel
volumes:
dgraph:%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment