Skip to content

Installation on Your Server

The easiest way to get started with WEBKNOSSOS is to get an account on webknossos.org.

WEBKNOSSOS is open-source, so you can also install it on your own server. This page explains how to set up the server, add your first datasets, and activate users.

Requirements and Setup

We recommend a server with at least 4 CPU cores, 16 GB RAM, and as much disk space as you require for your datasets. As prerequisites, you need to install Docker including Docker Compose on your server. Docker 23+ is recommended.

This tutorial shows how to install WEBKNOSSOS on a fresh VM, which is available over the public internet and has a domain name (or a subdomain) already configured. WEBKNOSSOS will then be available over a secured connection (HTTPS) with automatic certificate management.

# Create a new folder for webknossos
mkdir -p /opt/webknossos
cd /opt/webknossos

# Download the docker-compose.yml for hosting
wget https://github.com/scalableminds/webknossos/raw/master/tools/hosting/docker-compose.yml

# Create the binaryData folder which will contain all your datasets
mkdir binaryData

# The binaryData folder needs to be readable/writable by user id=1000,gid=1000
chown -R 1000:1000 binaryData

# Start WEBKNOSSOS and supply the DOCKER_TAG, PUBLIC_HOST and LETSENCRYPT_EMAIL variables
# In addition to WEBKNOSSOS, we also start an nginx proxy with automatic 
# SSL certificate management via letsencrypt
# Note that PUBLIC_HOST does not include http:// or https:// prefixes
# Please look up the latest WEBKNOSSOS version number at https://github.com/scalableminds/webknossos/releases
DOCKER_TAG=xx.yy.z PUBLIC_HOST=webknossos.example.com LETSENCRYPT_EMAIL=admin@example.com \
docker compose up webknossos nginx nginx-letsencrypt

# Wait a couple of minutes for WEBKNOSSOS to become available under your domain
# e.g. https://webknossos.example.com
# Set up your organization and admin account using the onboarding pages (see below)

# After the initial run, you can start WEBKNOSSOS in the background
DOCKER_TAG=xx.yy.z PUBLIC_HOST=webknossos.example.com LETSENCRYPT_EMAIL=admin@example.com \
docker compose up -d webknossos nginx nginx-letsencrypt

# Congratulations! Your WEBKNOSSOS is now up and running.

# Stop everything
docker compose down

Warning

This setup does not include backups or monitoring. Check out our paid service plans if you need assistance with your production setup.

Onboarding

When you start WEBKNOSSOS for the first time, you need to create an organization. An organization represents your lab in WEBKNOSSOS and handles permissions for users and datasets. Choose a descriptive name for your organization, e.g., "The University of Springfield", "Simpsons Lab" or "Neuroscience Department".

Create your organization

Create your organization

In the onboarding flow, you are asked to create a user account for yourself. This is the first user of your organization. It is activated automatically and granted admin rights. Make sure to enter a correct email address.

Create your first user

Create your first user

Your First Dataset

Without any data, WEBKNOSSOS is not fun. Luckily, there are some sample datasets that you can download directly from the onboarding pages. Once you've completed the onboarding, you can also import your own datasets.

For small datasets (max. 1 GB), you can use the upload in the web interface. For larger datasets, we recommend adding them through the file system.

If you do not have a compatible dataset available, you can convert your own data using the WEBKNOSSOS CLI or use one of the sample datasets for testing purposes.

By default, datasets are visible to all users in your organization. However, WEBKNOSSOS includes fine-grained permissions to assign datasets to groups of users.

Upload your first dataset

Upload your first dataset

Confirm the detected dataset properties

Confirm the detected dataset properties

Adding Datasets through the File System

On self-hosted instances, you can import large datasets efficiently by placing them directly on the file system (WKW or Zarr only):

  1. Place the dataset at <WEBKNOSSOS directory>/binaryData/<Organization name>/<Dataset name>, for example /opt/webknossos/binaryData/Springfield_University/great_dataset.
  2. Go to the Datasets tab of the dashboard.
  3. Select Scan disk for new datasets from the dropdown menu next to the Refresh button, or wait for WEBKNOSSOS to detect the dataset (up to 10 minutes).

Typically, WEBKNOSSOS infers all required metadata and imports the dataset automatically. In some cases, you need to import the dataset manually and provide more information:

  1. On the dashboard, click Import for your new dataset.
  2. Provide the requested properties, such as the scale. We also recommend setting the largestSegmentId. See Dataset Settings for explanations of these properties.

Info

If you uploaded the dataset along with a datasource-properties.json metadata file, the dataset will be imported automatically without any additional manual steps.

With direct file system access, you can also use symbolic links to import your data into WEBKNOSSOS. This is useful, for example, to combine very large raw microscopy data with one or several segmentation layers in new datasets without copying the raw data.

When using Docker, the targets of the links also need to be available to the container through mounts.

For example, you could have a link from /opt/webknossos/binaryData/sample_organization/awesome_dataset to /cluster/path/to/dataset123. To make this dataset available to the Docker container, you need to add /cluster as another volume mount. You can add this directly to the docker-compose.yml:

...
services:
  webknossos:
    ...
    volumes:
      - ./data:/webknossos/binaryData
      - /cluster:/cluster
...

Activating New Users

On private WEBKNOSSOS instances, users join through an email invitation and are activated automatically. Users who register without an invitation link start out deactivated, and an admin or team manager must activate their account before they can access anything on your instance. Users who registered within the last 14 days are listed above the Users list (Admin > Users) for quick activation. See Activating New Users for details.

Activate new users

Activate new users