Run it in a container
Each release is also published as a container image for linux/amd64 and linux/arm64:
docker run -d --name fuseraft-web \ -p 127.0.0.1:5000:5000 \ -v fuseraft-data:/data \ ghcr.io/fuseraft/fuseraft-web:latestdocker logs fuseraft-web 2>&1 | grep setup # the first admin's setup linkOr create the first admin from a shell:
docker exec -it fuseraft-web fuseraft-web users add alice --adminThe repository has a compose.yaml
with the same settings and commented-out options. Publishing on 127.0.0.1 keeps the server
unreachable from other machines until a TLS reverse proxy
is in front of it. Inside the container it listens on port 5000 on every interface, so it logs a
plain-HTTP warning at startup.
What’s in the image
Section titled “What’s in the image”fuseraft-web, in/opt/fuseraft-web.- The
fuseraftCLI that was latest when the image was built. Its version is in the image’sai.fuseraft.cli.versionlabel. git, andtinias process 1, so processes agents leave behind are reaped.
It has no compilers, runtimes or test tools. Agents can read and edit code, but can’t build or test it until you add what your projects need:
FROM ghcr.io/fuseraft/fuseraft-web:latestUSER rootRUN apt-get update && apt-get install -y --no-install-recommends nodejs npm python3 \ && rm -rf /var/lib/apt/lists/*USER $APP_UIDTo build the image from source: docker build -t fuseraft-web . in a clone. Pass
--build-arg FUSERAFT_CLI_VERSION=<version> to bundle a different CLI release.
Data and workspaces
Section titled “Data and workspaces”The image sets HOME=/data, so everything to keep is in one volume:
| Path | |
|---|---|
/data/.fuseraft-web |
The data directory: accounts, keys, saved daemons, later accounts’ homes and default workspaces |
/data/.fuseraft |
The first account’s fuseraft home |
Back that volume up as described in What to back up.
Agents can only work on what’s in the container. Bind-mount your repositories, for example
-v /srv/repos:/workspace, and add /workspace to people’s workspace roots on the Users page.
The files must be writable by the container’s user, UID 1654 by default. To run as the
repositories’ owner instead, pass --user 1000:1000 and bind-mount /data from a directory that
user owns too. A new named volume belongs to UID 1654.
Restarts end running work
Section titled “Restarts end running work”Outside a container, sessions and chats outlive a server restart.
In a container, their relays run inside it. Stopping, restarting or upgrading the container ends
them all, just like a reboot. Their logs and snapshots are in /data, so you can resume a session
from the Sessions page and a chat from Recent Chats on the Chat page. Upgrade when nothing important
is running.
API keys
Section titled “API keys”The image has no keychain, so the API keys in model profiles go in mode-600 files in each account’s
fuseraft home (profile-keys/) under /data. Anyone who can read the volume can read them, so
keep its backups as private as the keys.
The CodeExecution plugin
Section titled “The CodeExecution plugin”CodeExecution runs code in Docker containers, and the image has no Docker. Don’t mount the host’s Docker socket to make it work: whoever controls that socket controls the host, and agents would too.