Skip to content

Docker Compose

Copy the provided bootstrap configuration:

Terminal window
cp data/config.yml.example data/config.yml

Then choose how to store the master key. Configure exactly one of security.master_key_file and security.master_key.

Generate the key in the separate file referenced by the provided config.yml:

Terminal window
python -c "import base64,secrets; print(base64.urlsafe_b64encode(secrets.token_bytes(32)).decode().rstrip('='))" > data/master_key

The provided configuration already contains the corresponding path:

security:
master_key_file: /data/master_key

Whichever method you choose, keep the key private and back it up separately from the database. The decoded value must contain exactly 32 random bytes.

Terminal window
docker compose up --build -d
docker compose ps
docker compose logs -f brokerr
Terminal window
docker compose down

docker compose down preserves bind-mounted /data. Do not use commands that delete the host data directory unless you intentionally want a fresh instance.

Terminal window
git pull --ff-only
docker compose build --pull brokerr
docker compose up -d brokerr

Read the upgrade guide before replacing a running version.