Public | Automated Build

Last pushed: 2 years ago
Short Description
Cayley: a graph database by Google https://github.com/google/cayley
Full Description

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 git@github.com: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.

    {
     "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.

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

    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.

Docker Pull Command
Owner
saidimu
Source Repository

Comments (0)