-
Run with MongoDB
mkdir cayley_config && vim cayley_config/cayley.cfg
, and then write in the following content:
{ "database": "mongo", "db_path": "10.0.1.6:27017", "listen_host": "0.0.0.0", "listen_port": "64210", "read_only": false, "load_size": 10000, "timeout": 30, "db_options": { "database_name": "cayley" }, "replication_options": { "ignore_missing": false, "ignore_duplicate": false } }
- Then at the same level as directory
cayley_config
run:
docker run -v $PWD/cayley_config/:/data -p 64210:64210 -d quay.io/cayleygraph/cayley:v0.6.1
Then you have cayley server running at
localhost:64210
, and data will be stored in MongoDB which is specified bydb_path
.