One of the alternatives for installing Curiosity is to run it using a Docker-Compose deployment file.


Prerequisites

Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. In order to get started, you will need to have a working Docker installation on your machine or server.

You can follow the official Docker documentation on how to install it on your operating system.

In addition to installing Docker, you will also need to install the Docker-Compose daemon.

Docker Compose base configuration

Start by creating a folder where the docker-compose.yml file will be stored.

mkdir -p /curiosity/deployment/
mkdir -p /curiosity/data/
cd /curiosity/deployment/

Then create the docker-compose.yml file on your editor of preference, with the following content:

version: '3'

services:
server:
image: curiosityai/curiosity:latest
user: root
restart: always
stop_grace_period: 10m
environment:
- MSK_GRAPH_STORAGE=/data/storage/
- MSK_GRAPH_BACKUP_FOLDER=/data/bkp/
volumes:
- /curiosity/data/:/data/
ports:
- 8080:8080
expose:
- '8080'

For a list of environment variables available for configuring your Curiosity deployment, see Configuration.

Finally, from the folder where you just created the docker-compose.yml file, run the following command:

docker-compose up -d

You should be able to navigate on your browser to the port mapped on the file:

http://localhost:8080.

The username and password for your first log is in both cases: admin.

It is recommended that you change the admin password immediately to a secure one.

If you hit any issues, check the logs of the running docker image by running docker ps to see a list of running containers, followed by docker logs {container_id} -f to follow the container logs.

Did this answer your question?