Cambium

Documentation

Cambium Server

First Time Setup

This walks through standing up a Cambium server: one program, cambium-server, with everything it keeps in one data folder. The usual way to run it is the published Docker image, on any machine that runs Docker: a VPS, a machine on your studio's network, or a Mac or Windows PC with Docker Desktop.

1. Get Docker

You need Docker with the Compose plugin, version 2.24 or later. On Linux that is Docker Engine and its docker-compose-plugin package; on macOS and Windows it is Docker Desktop. Check with:

docker compose version

2. Start the server

Make a folder for it, put the published compose.yml in it, and start it:

sudo mkdir -p /opt/cambium && sudo chown "$USER" /opt/cambium && cd /opt/cambium
curl -fsSLO https://cambiumvcs.com/releases/latest/compose.yml
docker compose up -d

The folder can be anywhere, and you can paste the file in rather than download it. It runs the image cambiumvcs.com/cambium-server:0.5 on port 8666, restarts it if it stops, and keeps its data in a Docker volume named after the folder, so removing the container, or the image, never loses anything.

On Linux there is also a script that asks for a folder and a port, writes the files, starts the server and prints everything the next step needs:

curl -fsSL https://cambiumvcs.com/releases/latest/install-server.sh | sh

3. Read the setup code

A new server has no accounts and no default password. When it first starts it prints a one-time setup code, and whoever enters it becomes the server's first admin:

docker compose logs cambium
Cambium server 0.5.0
Setup code: 5NGB-4NTJ-RC3A
Fingerprint: F2:82:F8:E9:A0:57:F2:BC:CB:7C:0A:18:41:8A:BF:08:57:48:54:2F:...
Listening on https://0.0.0.0:8666

The fingerprint identifies the server's certificate. Your team compares it the first time they connect, so send it to them along with the address. It never changes, and docker compose exec cambium cambium-server fingerprint shows it again.

4. Open the port

The desktop app reaches the server on port 8666, so that port has to be open to your team. A VPS usually has a firewall in its provider's control panel, separate from anything on the machine; if the app cannot connect while the server is running, look there first.

5. Become its first admin

In the desktop app, open the connections window from the globe in the top bar and enter the server's address, such as studio.example.com:8666. Cambium shows the fingerprint; compare it and trust it. Because the server has no accounts yet, the app then shows Set up this server: enter the setup code, choose your handle and password, and you are signed in as its admin.

Screenshot of the Set up this server window

From the command line, the same step is:

cambium setup studio.example.com:8666 5NGB-4NTJ-RC3A --user @mike

6. Make a project and add your team

The Administration page has Projects: create one, then add people to it or hand out one of its invite codes. Each project has a lasting code, which works until you replace it, and a one-time code, which the server replaces as soon as someone joins with it. People enter a code in the projects window, from the globe.

Screenshot of the project manager with an invite code

Users creates accounts and sets roles. Everyone is a member unless you make them an admin; admins get the Administration page. See Using the Admin Panel.

Then point everyone at Installing the Desktop Client, and set up backups before the project holds anything you would miss.

Settings

Most of how the studio works (the server's name, invite codes, naming rules) is a preference, changed by admins in the app. A few things are fixed when the server starts, such as the port, TLS, and limits, and those are settings: one CAMBIUM_<NAME>=value per line in a cambium.env file beside compose.yml. The file is optional. After changing it:

docker compose up -d --force-recreate

Proxies and Networking covers the settings for running behind a reverse proxy, which is how you give the server a certificate from a public authority.