Skip to content

Instantly share code, notes, and snippets.

@xn3cr0nx
Created June 4, 2019 09:08
Show Gist options
  • Select an option

  • Save xn3cr0nx/09043088a0f3163a7c953a8bcd3e2f60 to your computer and use it in GitHub Desktop.

Select an option

Save xn3cr0nx/09043088a0f3163a7c953a8bcd3e2f60 to your computer and use it in GitHub Desktop.
docker-compose dgraph
version: "3.2"
services:
zero:
image: dgraph/dgraph:latest
volumes:
- ~/.bitgodine/dgraph:/dgraph
ports:
- 5080:5080
- 6080:6080
networks:
- dgraph
restart: on-failure
command: dgraph zero --my=zero:5080
server:
image: dgraph/dgraph:latest
volumes:
- ~/.bitgodine/dgraph:/dgraph
ports:
- 8080:8080
- 9080:9080
networks:
- dgraph
restart: on-failure
command: dgraph alpha --my=server:7080 --lru_mb=12288 --zero=zero:5080
ratel:
image: dgraph/dgraph:latest
volumes:
- ~/.bitgodine/dgraph:/dgraph
ports:
- 8000:8000
networks:
- dgraph
command: dgraph-ratel
volumes:
dgraph:
networks:
dgraph:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment