Install
Werbot ships as a Docker image (ghcr.io/werbot/werbot) and as release archives for Linux and macOS. The quickest way is Docker Compose on one host. Gateways on other hosts: gateway.md. The web UI on its own host: web.md.
Docker Compose
Section titled “Docker Compose”You need Docker with Compose v2. Run in an empty directory:
export WERBOT_VERSION=v0.1.1mkdir werbot && cd werbotcurl -fsSLO https://raw.githubusercontent.com/werbot/werbot/$WERBOT_VERSION/deploy/docker-compose.yamlcurl -fsSL https://raw.githubusercontent.com/werbot/werbot/$WERBOT_VERSION/deploy/.env.example -o .envsed -i.bak \ -e "s|^WERBOT_VERSION=.*|WERBOT_VERSION=$WERBOT_VERSION|" \ -e "s|^WERBOT_SECRET_KEY=.*|WERBOT_SECRET_KEY=$(openssl rand -base64 32)|" \ -e "s|^POSTGRES_PASSWORD=.*|POSTGRES_PASSWORD=$(openssl rand -hex 24)|" \ .env && rm .env.bakdocker compose up -d --waitOn a remote server, read Remote access before the first login. On this host open http://localhost:8080: the setup page creates the first account and its organization.
What runs (project werbot):
postgres:postgres:18-alpine, data in the volumewerbot_postgres-data(/var/lib/postgresql).werbot:werbot server --with-gatewayfromghcr.io/werbot/werbot:${WERBOT_VERSION}, state in the volumewerbot_werbot-data(/var/lib/werbot). Docker checks it withwerbot healthcheck(GET /healthz).
| Port | Purpose |
|---|---|
8080 |
Web UI and API, /healthz and /readyz. |
2222 |
SSH to the built-in gateway (pool local, available after Setup). |
8443 |
mTLS tunnel for gateways on other hosts (gateway.md). |
docker compose configanduprefuse an emptyWERBOT_VERSION,WERBOT_SECRET_KEYorPOSTGRES_PASSWORDand name the generate command.- Keep
.envand a copy ofWERBOT_SECRET_KEY: it decrypts stored credentials, and a backup is useless without it (upgrading.md). - The
werbotservice stops withinstop_grace_period: 70s: the built-in gateway drains its sessions (WERBOT_GATEWAY_DRAIN_TIMEOUT,30s), then the server stops. - The image is public and needs no login. If
docker compose upfails withdeniedfromghcr.io, Docker sends a stale stored login: rundocker logout ghcr.ioand retry. - Pin
WERBOT_VERSIONto a release tag; there is nolatesttag before 1.0. Upgrades: upgrading.md. - More settings (SMTP, trusted proxies, S3 for recordings) go into
.env: configuration.md.
Remote access
Section titled “Remote access”In production mode the session cookie is __Host-werbot_session with the Secure flag. Browsers drop such a cookie over plain http:// on any host but localhost, so a login at http://<server-ip>:8080 does not work: the browser does not keep the session. On http://localhost use Chrome or Firefox; other browsers (Safari) may drop the Secure cookie there too.
Pick one way:
SSH tunnel (to try Werbot). On your machine run:
ssh -L 8080:localhost:8080 <user>@<server>Keep it open and browse http://localhost:8080.
TLS reverse proxy (for real use). Point a DNS name at the server, for example werbot.example.com, and put a TLS proxy in front of port 8080. With Caddy the Caddyfile is:
werbot.example.com { reverse_proxy 127.0.0.1:8080}- In
docker-compose.yamlpublish the UI on loopback only:"127.0.0.1:8080:8080"instead of"8080:8080". - In
.envsetWERBOT_PUBLIC_URL=https://werbot.example.com. - In
.envsetWERBOT_TRUSTED_PROXIESto the proxy address aswerbotsees it, so sessions and audit show the real client IP. For Caddy on the Docker host that is the gateway of the compose network:docker network inspect werbot_default --format '{{(index .IPAM.Config 0).Gateway}}'prints for example172.18.0.1; setWERBOT_TRUSTED_PROXIES=172.18.0.1/32. - Apply:
docker compose up -d --wait.
Leave port 8443 (gateway tunnel) out of the proxy: it is mTLS and needs a direct TCP path (gateway.md).
Binary
Section titled “Binary”Release archives: werbot_<version>_<os>_<arch>.tar.gz for linux and darwin (amd64, arm64); the version has no v, for example werbot_0.1.1_linux_amd64.tar.gz. Windows .zip archives are for the client: on Windows only werbot connect is supported (connect.md).
-
From the releases page download the archive for your platform,
checksums.txtandchecksums.txt.sigstore.json. -
Verify them: security.md.
-
Unpack and install:
Terminal window tar -xzf werbot_0.1.1_linux_amd64.tar.gz werbotsudo install -m 0755 werbot /usr/local/bin/werbotOn macOS the binary is not notarized; remove the quarantine flag first:
xattr -d com.apple.quarantine ./werbot.
The server needs PostgreSQL 18 and three variables: WERBOT_DATABASE_URL, WERBOT_SECRET_KEY (openssl rand -base64 32) and WERBOT_PUBLIC_URL. Start it with werbot server --with-gateway (API, UI and a built-in gateway in one process) or werbot server (without the gateway). All variables: configuration.md.
A systemd unit on Linux:
sudo useradd --system --home-dir /var/lib/werbot --create-home werbotsudo install -d -m 0700 /etc/werbotsudo tee /etc/werbot/werbot.env > /dev/null <<EOFWERBOT_DATABASE_URL=postgres://werbot:<password>@localhost:5432/werbotWERBOT_SECRET_KEY=$(openssl rand -base64 32)WERBOT_PUBLIC_URL=https://werbot.example.comEOFsudo chmod 0600 /etc/werbot/werbot.env/etc/systemd/system/werbot.service:
[Unit]Description=WerbotAfter=network-online.target postgresql.serviceWants=network-online.target
[Service]User=werbotEnvironmentFile=/etc/werbot/werbot.envWorkingDirectory=/var/lib/werbotExecStart=/usr/local/bin/werbot server --with-gatewayRestart=on-failureLimitNOFILE=65536TimeoutStopSec=70
[Install]WantedBy=multi-user.targetsudo systemctl daemon-reload && sudo systemctl enable --now werbotcurl -fsS localhost:8080/healthz # okWorkingDirectory holds ./data (WERBOT_DATA_DIR: the built-in gateway and file-system recordings). TimeoutStopSec=70 leaves time for the gateway drain, and LimitNOFILE=65536 covers the default session limit (scaling.md). Back up /etc/werbot/werbot.env: it holds WERBOT_SECRET_KEY. The Remote access rules apply here too.
Next steps
Section titled “Next steps”- Gateways on other hosts and pools: gateway.md.
- The web UI on its own host and domain: web.md.
- All variables: configuration.md.
- Upgrades and backups: upgrading.md.
- Several server replicas and gateway pools: scaling.md.