Installing zaun-host
zaun-host is one static binary. It runs on Linux, x86_64 or aarch64 (Raspberry Pi 4/5), in about
512 MB of memory. Pick one way to run it:
docker run -d --name zaun-host --restart unless-stopped --memory 512m \ -v zaun-host:/var/lib/zaun-host ghcr.io/zaunchat/zaun-hostdocker exec zaun-host zaun-host address # the address members and owners connect toThe first start runs zaun-host init for you, then serves. The image is Alpine with one static
binary, runs as an unprivileged user, and is built for amd64 and arm64. There are no ports to
publish: members reach the host through SimpleX relays.
The repository’s deploy/compose.yaml runs the same image with a read-only root file system and no
Linux capabilities:
curl -O https://raw.githubusercontent.com/zaunchat/zaun-community/main/deploy/compose.yamldocker compose up -ddocker compose exec zaun-host zaun-host addressYou need Rust; the exact version is pinned in rust-toolchain.toml and installed for you by
rustup.
git clone https://github.com/zaunchat/zaun-community && cd zaun-communitycargo build --release -p zaun-host./target/release/zaun-host init --data-dir ./zaun-data./target/release/zaun-host run --data-dir ./zaun-dataBuild or copy the binary to /usr/local/bin/zaun-host, then use the hardened unit from
deploy/zaun-host.service (it runs as zaun-host, reads /var/lib/zaun-host/zaun-host.toml, and
limits memory to 512 MB):
sudo useradd --system --no-create-home zaun-hostsudo install -d -o zaun-host -g zaun-host -m 0700 /var/lib/zaun-hostsudo -u zaun-host zaun-host init --data-dir /var/lib/zaun-hostsudo cp deploy/zaun-host.service /etc/systemd/system/sudo systemctl enable --now zaun-hostChoosing relays
Section titled “Choosing relays”By default the host uses the official SimpleX servers. To use your own smp-server (or anyone
else’s), pass --smp smp://<fingerprint>@<host> to init, or list servers in smp_servers. With
your own SMP servers, also list an XFTP server (--xftp), or attachments are off.
First run: check the host and create your first community.