This guide explains how to set up an ArangoDB cluster using Docker Compose. ArangoDB is a distributed, multi-model database that supports key-value, document, and graph data models.
Before you begin, make sure you have the following installed on your machine:
- Docker: Containerization platform used to run the ArangoDB cluster.
- Docker Compose: Tool for defining and running multi-container Docker applications.
Follow these steps to set up an ArangoDB cluster using Docker Compose:
- Clone the project.
git clone [email protected]:thien-nguyenthanh/arangodb-cluster-compose.git
- Run the following command to start the ArangoDB cluster
cd arangodb-cluster-compose && docker compose up -d
- Wait for the containers to start up. You can check the container logs using the following command:
docker-compose logs -f
-
Once the containers are running, you can access the ArangoDB Web UI by opening a browser and navigating to
http://localhost:8529
orhttp://localhost:8530
. These ports are exposed for the coordinators in thedocker-compose.yml
file. -
From the ArangoDB Web UI, you can configure and manage your ArangoDB cluster.
To stop and remove the ArangoDB cluster, run the following command in the directory containing the docker-compose.yml
file:
docker-compose down