Build the appliance on a disposable Docker-capable builder. The builder needs network access, Docker Buildx, Git, curl, gzip, and enough free space for the base image, build layers, and the exported runtime. The current amd64 QA build produced a 4.1 GB Docker image and a 1.67 GB compressed export. The pinned runtime currently targets amd64.
The normal TKLDev Fab build generates a runtime outside the application source tree and stages it in the appliance filesystem. It verifies the official launcher archive and selects Discourse source revisions and a base image. Run the build in an isolated builder: it executes upstream build commands with the builder's Docker daemon.
At first boot, provide a DNS name and administrator email address. Setup loads the runtime, creates a dedicated Docker network and a Postfix listener restricted to the app's current address, and waits for Discourse to initialize. Sign up with the chosen email address and follow its activation message to finish community setup. The DNS name must resolve to the server for links to work.
The runtime configuration is /var/discourse/containers/app.yml, persistent
data is under /var/discourse/shared/standalone/, and systemd controls
turnkey-discourse.service. Retain that data, app.yml, and
/var/lib/turnkey-discourse/network.json together when backing up or restoring
a community. The service recreates its dedicated Docker network from this
state if the network is missing. Save the installed local_discourse/app:latest
image and record its image ID and archive checksum with each backup:
set -o pipefail
docker image inspect local_discourse/app:latest --format '{{.Id}}' > app-image.id
docker save local_discourse/app:latest | gzip > app-image.tar.gz
sha256sum app-image.tar.gz > app-image.sha256On a fresh destination, verify the checksum with sha256sum -c app-image.sha256,
load the archive with docker load -i app-image.tar.gz, and compare the loaded
image ID with app-image.id before starting the restored service. Use the
image that matches the backed-up database, especially after an upgrade. The app
configuration pins the tested Discourse revision. The installed upstream
launcher may select a compatible plugin revision during an administrator
rebuild; the seed build's plugin pin applies to the original image. Validate
the upgrade and backup paths before relying on them.
The appliance also provides a native recovery bundle helper for a backup
profile. Run turnkey-discourse-backup create DIRECTORY with a new private
directory path. It records a native database and uploads backup, the running
app image, app.yml, and the saved network state. The helper requests S3
uploads when configured, which can take time and incur transfer charges.
Run turnkey-discourse-backup verify DIRECTORY before using a bundle. Protect
the directory as confidential backup data and authenticate it through the
backup system; its checksums detect changes but do not authenticate the source.
Native restore and the backup system's rollback integration require a separate
recovery workflow.
To restore a verified bundle to a freshly initialized appliance running the same Discourse image, keep a private copy of its current state and run:
turnkey-discourse-backup restore /path/to/bundle --fresh --recovery-dir /path/to/new-recovery-directoryThe restore keeps the destination hostname and network configuration. It saves
and verifies the destination's current data first. Mail remains held while you
review the restored site. After checking the hostname and mail settings, run
turnkey-discourse-backup enable-mail to enable its managed SMTP listener.
If the restore fails, the hold and recovery directory remain available for
inspection. This recovery bundle is separate from TKLBAM rollback.