Public Repository

Last pushed: 24 days ago
Short Description
Official Docker container for ArangoDB
Full Description

What is ArangoDB?

ArangoDB is a multi-model, open-source database with flexible data models for documents, graphs, and key-values. Build high performance applications using a convenient SQL-like query language or JavaScript extensions. Use ACID transactions if you require them. Scale horizontally and vertically with a few mouse clicks.

The supported data models can be mixed in queries and allow ArangoDB to be the aggregation point for the data request you have in mind.

Dockerfile: Latest (Dockerfile)

Key Features in ArangoDB

Documents, graphs and key-value pairs — model your data as you see fit for your application.

Conveniently join what belongs together for flexible ad-hoc querying, less data redundancy.

Easy application development keeping your data consistent and safe. No hassle in your client.

Joins and Transactions are key features for flexible, secure data designs, widely used in RDBMSs that you won't want to miss in NoSQL products. You decide how and when to use Joins and strong consistency guarantees, keeping all the power for scaling and performance as choice.

Furthermore, ArangoDB offers a microservice framework called Foxx to build your own Rest API with a few lines of code.

ArangoDB Documentation

How to use this image

Start an ArangoDB instance

In order to start an ArangoDB instance run

unix> docker run -e ARANGO_RANDOM_ROOT_PASSWORD=1 -d --name arangodb-instance -d arangodb/arangodb

Will create and launch the arangodb docker instance as background process.
The Identifier of the process is printed.
By default ArangoDB listen on port 8529 for request and the image includes
EXPOSE 8529. If you link an application container it is automatically
available in the linked container. See the following examples.

In order to get the IP arango listens on run:

docker inspect --format '{{ .NetworkSettings.IPAddress }}' <IDENTIFIER>

(where <IDENTIFIER> is the return string of the previous start command)

Using the instance

In order to use the running instance from an application, link the container

unix> docker run -e ARANGO_RANDOM_ROOT_PASSWORD=1 --name my-app --link arangodb-instance:db-link arangodb/arangodb

This will use the instance with the name arangodb-instance and link it into
the application container. The application container will contain environment


These can be used to access the database.

Exposing the port to the outside world

If you want to expose the port to the outside world, run

unix> docker run -e ARANGO_RANDOM_ROOT_PASSWORD=1 -p 8529:8529 -d arangodb/arangodb

ArangoDB listen on port 8529 for request and the image includes EXPOSE 8529. The -p 8529:8529 exposes this port on the host.

Choosing an authentication method

The ArangoDB image provides several authentication methods which can be specified via environment variables (-e) when using docker run


    Generate a random root password when starting. The password will be printed to stdout (may be inspected later using docker logs)


    Disable authentication. Useful for testing.

    WARNING Doing so in production will expose all your data. Make sure that ArangoDB is not diretcly accessible from the internet!

  3. ARANGO_ROOT_PASSWORD=somepassword

    Specify your own root password.

Command line options

In order to get a list of supported options, run

unix> docker run -e ARANGO_RANDOM_ROOT_PASSWORD=1 arangodb/arangodb arangod --help

Persistent Data

ArangoDB use the volume /var/lib/arangodb as database directory to store the collection
data and the volume /var/lib/arangodb-apps as apps directory to store any extensions. These
directories are marked as docker volumes.

See docker inspect --format "{{ .Config.Volumes}}" arangodb/arangodb for all volumes.

A good explanation about persistence and docker container can be found here:
Docker In-depth: Volumes,
Why Docker Data Containers are Good

Using host directories

You can map the container's volumes to a directory on the host, so that the data
is kept between runs of the container. This path /tmp/arangodb is in general
not the correct place to store you persistent files - it is just an example!

unix> mkdir /tmp/arangodb
unix> docker -e ARANGO_RANDOM_ROOT_PASSWORD=1 run -p 8529:8529 -d \
          -v /tmp/arangodb:/var/lib/arangodb \

This will use the /tmp/arangodb directory of the host as database directory
for ArangoDB inside the container.

Using a data container

Alternatively you can create a container holding the data.

unix> docker create --name arangodb-persist arangodb/arangodb true

And use this data container in your ArangoDB container.

unix> docker run -e ARANGO_RANDOM_ROOT_PASSWORD=1 --volumes-from arangodb-persist -p 8529:8529 arangodb

If want to save a few bytes you can alternatively use
for creating the volume only containers.
Please note that you need to provide the used volumes in this case. For example

unix> docker run -d --name arangodb-persist -v /var/lib/arangodb tianon/true true

Building your own ArangoDB image

We are auto generating docker images via our build system so the Dockerfile is a template. To build your own ArangoDB image:

cp Dockerfile.templ Dockerfile

Adjust @VERSION@ in the Dockerfile and issue:

docker build -t arangodb .

This will create an image named arangodb.

Docker Pull Command