Sign inSign up

saidimu/cayley

By saidimu

Updated almost 11 years ago

Cayley: a graph database by Google https://github.com/google/cayley

Image
2

1.2K

saidimu/cayley repository overview

cayley-docker

A Docker image for Cayley, an open-source graph database inspired by Freebase and Google's Knowledge Graph.

Getting Started
docker run -d -p 64210:64210 saidimu/cayley:v0.4.0

Then open http://127.0.0.1:64210 from your browser for the web GUI.

Getting Started with fig

If you have fig installed, clone this repository and execute the following commands:

git clone [email protected]:saidimu/cayley-docker.git
cd cayley-docker
fig up -d
fig logs

Then open http://127.0.0.1:64210 from your browser for the web GUI.

Attach persistent/shared directories using host-mounted volumes
  1. Create a mountable data directory <data-dir> on the host.

  2. Create a Cayley config file at <data-dir>/cayley.cfg.

```json
{
  "database": "bolt",
  "db_path": "/data/boltdb",
  "listen_host": "0.0.0.0"
}
```

Note that `listen_host` must be set to `0.0.0.0` for Cayley to be accesible from outside the container.

3. Start a container by mounting the data directory on the host to /data in the container:

```sh
docker run -d -p 64210:64210 -v <data-dir>:/data saidimu/cayley:v0.4.0
```
Using fig with data-only containers

fig.yml includes definitions for a data-only container and a volume mounts for a custom_config folder that holds a custom config file you can provide.

Tag summary

Content type

Image

Digest

sha256:e81173c71

Size

157.9 MB

Last updated

almost 11 years ago

docker pull saidimu/cayley