Install with containers
Run FarWatch with Docker compose, set the first account and platforms, back up the volumes, and use the Helm chart.
What runs
The container package runs the same two processes as the other installers, a web process and a poller process, from one image. Internal names stay ICC: the icc-cli command and the ICC_* variables. Both processes use the same SQLite files in one data volume, or a PostgreSQL server if you choose that at first start.
The image compiles the application to V8 bytecode with the Node.js inside the image. The container runs as a non-root user (uid 10001).
This page does not cover how the image is distributed. Ask FarWatch support how to obtain the image and the compose files for your account. A private registry package needs a login on the host before it can pull:
echo <token with read access> | docker login <registry> -u <user> --password-stdinFirst run
From the folder that holds the compose file:
cp env.example .env
chmod 600 .env
# set ICC_ADMIN_PASSWORD, and optionally ICC_PLATFORMS, LICENSE_KEY, TRUST_PROXY
docker compose -f compose.yaml up -dOpen http://<your-server>:3001/. The web container creates the first global administrator, Admin, from ICC_ADMIN_PASSWORD and asks for a new password at first sign-in. Leave ICC_PLATFORMS unset to get the platform picker in the browser. With no LICENSE_KEY the product runs a 30-day trial. See First sign-in.
The entrypoint hands the password to the CLI on stdin and removes it from the process environments after the first-run bootstrap. But docker inspect and docker compose config still show it while it is in .env. Keep .env at mode 0600 and delete the line after first sign-in. ICC_ADMIN_PASSWORD_FILE, a mounted secret whose first line is the password, is read when ICC_ADMIN_PASSWORD is not set.
Environment variables
| Variable | Meaning |
|---|---|
| ICC_ADMIN_PASSWORD, ICC_ADMIN_PASSWORD_FILE | Password for the first global administrator. |
| ICC_PLATFORMS | Starting platform ids, comma separated. Blank leaves the first-run picker. |
| LICENSE_KEY | Licence key. Blank means the 30-day trial. |
| TRUST_PROXY | Set to 1 when a TLS proxy sits in front. |
| FARWATCH_BIND | Interface the web port is published on. The default is every interface. |
| ICC_GENERATE_API_KEY | Set to 1 before first start to generate DASHBOARD_API_KEY, a standing global-admin break-glass key. Not generated by default. |
| LOG_LEVEL | error, warn, info or debug. |
Keys
ENCRYPTION_KEY is generated on first start and written to /data/icc.env, mode 0600, inside the data volume. It encrypts the credentials stored in the database files beside it, so the key and the data are one unit. Back them up together and restore them together. Setting the variable in .env overrides the file.
TLS
The web port is published on every interface by default. Bind it with FARWATCH_BIND, for example FARWATCH_BIND=127.0.0.1, to expose it only to a local reverse proxy.
The package includes an optional Caddy proxy under the tls profile. Set FARWATCH_HOST, TRUST_PROXY=1 and FARWATCH_BIND=127.0.0.1 in .env, then start with --profile tls. Leaving port 3001 on all interfaces beside the proxy keeps a cleartext login path open. With TRUST_PROXY=1, a client that reaches port 3001 directly can choose its own source address.
Rules for SQLite
Run exactly one web container and one poller container, never two web replicas. Keep /data on a local disk, never a network file system.
Starting on PostgreSQL
Set ICC_DATABASE=postgres and the ICC_PG_* variables to start a new install on an existing PostgreSQL server. See Starting on PostgreSQL. Nothing in the package runs PostgreSQL.
Plugin packs
Marketplace packs install from the web interface under Global Settings > Platforms. They are stored in the plugins volume and survive a container recreate. See Plugin packs and the marketplace.
Backup
Use the built-in backup, Global Settings > Backup and recovery, or stop the stack so the SQLite files are quiet and archive both volumes:
docker compose -f compose.yaml stop
docker run --rm -v farwatch-data:/data -v farwatch-plugins:/plugins -v "$PWD":/backup alpine \
tar czf /backup/farwatch-backup.tar.gz /data /plugins
docker compose -f compose.yaml startCompose prefixes volume names with the project name, which is the folder name by default. Run docker volume ls and adjust the names. See Backup and restore.
Upgrade
Pull or load the new image, then run docker compose -f compose.yaml up -d. The containers are recreated, the volumes stay, and database migrations run once at first boot of the new image. Take a backup first.
The web container renames the default tenant's database files at start and then writes /data/.icc.rename.done. The poller container waits for that file before it opens any database. It stops with a message if the file does not appear within 180 seconds. Set ICC_IMAGE_VERSION on both containers or on neither.
Logs
docker compose -f compose.yaml logs -fBoth processes write to stdout and stderr.
Kubernetes with Helm
A Helm chart for Kubernetes exists. It has had less field use than the compose package, so test it in a non-production cluster first.
The chart runs one pod with a web container and a poller container, and two persistent volume claims, one for data and one for plugins. It always runs exactly one replica with a Recreate strategy and refuses to render if you set replicas. SQLite has a single writer, so never scale it and never put the data volume on a network file system.
helm install farwatch deploy/helm/farwatch -n farwatch --create-namespace \
--set secret.adminPassword='<first admin password>'Useful values:
| Value | Meaning |
|---|---|
| secret.licenseKey | Licence key. After changing it, run kubectl rollout restart deployment/farwatch -n farwatch. |
| existingSecret | Your own Secret with the keys ICC_ADMIN_PASSWORD and LICENSE_KEY. |
| config.platforms | Starting platform ids. Blank leaves the first-run picker. |
| ingress.enabled, ingress.className, ingress.host | Expose the service. TRUST_PROXY then defaults to 1. |
| persistence.data.size, persistence.plugins.size | Volume sizes. The defaults are 10Gi and 1Gi. |
| imagePullSecrets | Pull secret for a private registry. |
Upgrade with helm upgrade farwatch deploy/helm/farwatch -n farwatch --reuse-values --set image.tag=<new>. Both claims are kept. helm uninstall removes the pod, service, secret and config map, and leaves both claims in place until you delete them yourself.
The chart ships no PodDisruptionBudget, NetworkPolicy or autoscaler, by design for a single replica.