Install with Docker on Ubuntu

Table of Contents

Install docker (optional)

This step is needed only when you don't have Docker installed yet.

sudo apt update
sudo apt install

Add user (optional)

Create the user "graphlytic" and add it to the docker group. It is not recommended to create and run the Graphlytic docker container with the root user. It may cause problems with files created by the docker process.

sudo useradd -m -s /bin/bash graphlytic
sudo usermod -aG docker graphlytic

Switch user to "graphlytic".

sudo su graphlytic
cd ~

Get Dockerfile and basic structure

As a first step, you need to create a directory structure where the docker image will be built.

Go to the directory where you want to place the application files and run:

git clone
cd graphlytic-docker

Configure the application using environment variables in the Dockerfile (optional)

This is an optional step that can be used when you want to set some of the application configurations prior to running the container. It's used mainly in automated environments. For the list of all configurations that can be set this way please refer to Configuration.

For instance to set the Neo4j connection go to graphlytic-docker directory and edit the Dockerfile file (you can set the connection also later, in the application's Setting section). There are several properties regarding the Neo4j connection. Please change these values according to your Neo4j location:

ENV NEO4J_CONNECTOR_BOLT=bolt://localhost:7687

If the Neo4j database is running on your machine together with the Graphlytic docker container, try to set NEO4J_CONNECTOR_BOLT to:

Build the docker image

Build your local image with this command:

docker build -t graphlytic .

Run the docker container

Create and run the docker container.

docker run -tid --name graphlytic -v "$(pwd)"/volume/:/usr/share/graphlytic/volume -p 8080:8080 graphlytic

It can last up to several minutes for the docker container and the application to be fully ready.

Stop the docker container

docker stop graphlytic

Start the docker container

docker start graphlytic