Skip to main content
Loading
Version: Graph 2.3.0

Configuration options

This page describes how to specify configuration options for Aerospike Graph Service `(AGS) using a Docker flag or the properties file. When starting the Aerospike Graph Service (AGS) Docker container, you can specify configuration options using a Docker flag or the properties file.

  • Use the -e Docker flag.

    Example:

    docker run -p8182:8182 -e aerospike.client.namespace="test" \
    -e aerospike.client.host="<HOSTNAME:PORT>" \
    aerospike/aerospike-graph-service
  • Use a properties file named aerospike-graph.properties which lists the desired configuration options and values.

    Example:

    aerospike.client.namespace: test
    aerospike.client.host: aerospike-devel-cluster-host1:3000, aerospike-devel-cluster-host2:3000
    aerospike.graph.index.vertex.properties: property1, property2
    aerospike.graph.index.vertex.label.enabled: true

To use a properties file when running the AGS Docker image, use the -v flag to create a volume bind. In the following example, the full local path to the properties file is /home/graph-user/graph/conf/aerospike-graph.properties. The filepath after the :, /opt/aerospike-graph/aerospike-graph.properties, is the corresponding properties file in the AGS Docker container.

docker run -p 8182:8182 \
-v /home/graph-user/graph/conf/aerospike-graph.properties:/opt/aerospike-graph/aerospike-graph.properties \
aerospike/aerospike-graph-service