6 C
Thursday, January 28, 2021

How to deploy ArangoDB using Docker Compose?

Must read

Please Donate

Senior Writer and partner

Hello. In this post, I will teach you how to deploy ArangoDB using Docker compose. It will be brief but explained step by step.

Briefly, I will tell you that Docker compose is more thought of production environments where compatibility should be as high as possible. This is precisely the great advantage of Docker images that we will be able to use in any supported system thanks to the technology of containers. Then, these steps can be done from any Linux distribution that has installed Docker and Docker Compose.

ArangoDB is a native 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.

So, let us start.

Install Docker and Docker Compose on Linux

The first step is to have Docker installed in the system, obviously.

And using your distribution’s package manager, you can install Docker Compose. For example:

:~$ sudo apt docker-compose

For Debian, Ubuntu, and derivatives.

:~$ sudo dnf install docker-compose

Or, for RHEL, CentOS and derivatives.

Deploy ArangoDB using Docker Compose

First, I will create a folder called arangodb and within it a file called docker-compose.yml which is where we will add the instructions.

:~$ mkdir arangodb
:~$ cd arangodb

Now we’ll create the docker-compose file and add the following:

:~$ nano docker-compose.yml
version: '3.1'
     image: arangodb:latest
     restart: always
       - 1234:8529
       ARANGO_ROOT_PASSWORD: angelo123osradar
       - /home/angelo/arangodb_data:/var/lib/arangodb3
1.- The docker compose file
1.- The docker-compose file

Now we proceed to explain. First, I’m using the latest version of ArangoDB. Then, I expose port 8529 which is the image port to 1234 of our host system. You can use another port if you want.

On the other hand, in the environment section, I define an initial password for the root user. And a volume to access the container data. I have chosen /home/angelo/arangodb_data but you choose the one you want. Remember that before you raise the image you must create it.

Then, create the data folder and start the deployment.

:~$ mkdir/home/angelo/arangodb_data
:~$ sudo docker-compose up -d
2.- Deploy ArangoDB using docker compose
2.- Deploy ArangoDB using docker compose

When you finish, you can access the ArangoDB web interface. Open your browser and go to http://your-server:1234. You will see the following:

3.- ArangoDB working
3.- ArangoDB working

Then, type your credentials. Keep in mind that the default user is root. After that, you will see this:

4.- Selecting the database after the log in
4.- Selecting the database

Finally, you will see the dashboard.

5.- ArangoDB deployed using docker compose
5.- ArangoDB deployed using docker compose

And that is it.


ArangoDB is a NoSQL database manager quite important in the current market. Deploying ArangoDB using Docker compose is simple but with many options available.

If you want more information, I recommend you to visit the official documentation of the image.

More articles


Please enter your comment!
Please enter your name here