Installation
Follow these instructions to install and start using Mantrae with Traefik.
Prerequisites
- Install Traefik: Ensure you have a running instance of Traefik.
- Generate a Secret: Create a secure, random secret key to use with Mantrae:
Copy the generated secret as you’ll need it in the next steps.
openssl rand -hex 32
Installation Options
Option 1: Download the Binary
- Visit the releases page to download the latest Mantrae binary for your platform.
- Run the binary with:
export SECRET=<your_secret>
./mantrae
Option 2: Use Docker
Run Mantrae in a Docker container:
docker run --name mantrae -e SECRET=<your_secret> -d -p 3000:3000 ghcr.io/mizuchilabs/mantrae:latest
Option 3: Docker Compose (Mantrae + Traefik)
Use the provided docker-compose.yml
file to deploy Mantrae and Traefik together.
- Download the example docker-compose.yml.
- Run the following command to start both services:
docker-compose up -d
Access the Web UI
Once Mantrae is running, open your browser and navigate to:
Log in using the user admin
and the generated password, which will display on the first run.
CLI Options
-version
: Print the version.-config
: Specify the path where the database should be stored. (Default:./mantrae.db
)-port
: Set the port to listen on. (Default:3000
)-update
: Update mantrae to the latest version. (Will not work inside docker container!)-reset
: Reset the admin password. Will generate a new one and print it to the console.-auth
: Enable basic auth for the profile endpoint. (Default:false
). This will protect the/api/<profilename>
endpoint using BasicAuth. If you enable this you need to set the correct headers in Traefik so it can fetch the data. Example default mantrae user isadmin
and password issupersecret
, useecho -n "admin:supersecret" | base64
to generate the Credentials. After that you can configure the http provider in Traefik:providers.http.headers.Authorization=Basic YWRtaW46c3VwZXJzZWNyZXQ=
Optionally you can set the default profile by providing the flags below:
-url
: Set the URL of the Traefik instance. (e.g.:http://localhost:8080
)-username
: Set the username for basic auth, if your Traefik instance uses basic auth. (e.g.:admin
)-password
: Set the password for basic auth. (e.g.:supersecret
)