docker run -it -p 8080:8080 -p 9080:9080 -v ~/dgraph:/dgraph --name dgraph dgraph/dgraph dgraphzero -w zw
As above line it states I should mount the local dgraph directory.
If I would like to create a cluster that starts with 3 dgraphzero instances, do I need to mount 3 different local directories e.g. ~/dgraph0, ~/dgraph1 and ~/dgraph2 respectively? OR a single ~/dgraph that shared across 3 instances?
Each dgraph instance will need its own directory to run in. So you could either mount a single directory, but tell each dgraph instance to use its own subdirectory, or you could mount three directories. Either approach should work.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.