Skip to content

Setup Guide

This guide will walk you through setting up a new instance with Docker.

We will need very few tools for this:

  • Docker
  • An internet connection

That’s it.

The compose file we provide is for Docker Stack, to be used when Swarm mode is activated.

Please read the docker docs on how to activate swarm mode.

If you do not want to/cannot use Swarm mode, you’ll need to adapt the compose file accordingly.

First off, you’ll need to store the Database password in a Docker secret. It’s much more secure to store that way rather than having it directly in the compose file or another file.

Simply run this command to generate a secure password and save it in a db-password secret.

Fenêtre de terminal
openssl rand -base64 32 | tr -d '\n' | xargs printf '%s' | docker secret create db-password -

Please note Docker Secrets cannot be used with regular Docker Compose.

For Karr to work properly, it requires a config file with at least the APP_URL set (it can be localhost).

See the configuration reference for more details

Download the stack compose file from Github. You can change the environment variables to your liking.

Then get the Docker Stack running.

Fenêtre de terminal
docker stack deploy -c compose-stack.yml karr

Your very own Karr instance is now running!