An Unraid-first, single-container deployment of Sure for people who want the easiest reliable self-hosted install without manually wiring PostgreSQL and Redis on day one.
sure-aio packages the Rails web app, Sidekiq worker, PostgreSQL, and Redis into one Unraid template with persistent appdata paths. The wrapper is opinionated for a predictable beginner install, but it does not hide the real tradeoffs: backups still matter, reverse-proxy and SMTP settings still need operator judgment, and bundled services are convenience infrastructure rather than the ideal long-term topology for every deployment.
- Sure web UI on port
3000 - bundled Sidekiq worker supervised in the same container
- embedded PostgreSQL and Redis for the default beginner path
- persistent Rails storage plus separate PostgreSQL and Redis appdata mounts
SKYLIGHT_ENABLED=falseby default so AIO users are not forced into external APM setup- Unraid CA template at sure-aio.xml
This repo also carries sure-aio-alpha, a separate testing package managed by aio-fleet from the same source repo. It tracks upstream Sure alpha prereleases into each line's release candidate (currently 0.7.7-rc.1), publishes jsonbored/sure-aio-alpha:latest-alpha, and uses sure-aio-alpha.xml with separate appdata paths and default host port 3001.
Alpha is intentionally not the stable package. It is where wrapper-only experiments live first, including the current configurable Sure import limits, strict SureImport preflight/failure diagnostics, and self-hosted admin reset UI/task for larger NDJSON/import testing. Alpha images publish under the dedicated Docker Hub and GHCR packages, with GitHub prereleases tagged as sure-alpha/<version>. See docs/alpha-lane.md before pointing it at important data.
- Install the Unraid template.
- Generate
SECRET_KEY_BASEwithopenssl rand -hex 64. - Leave the default appdata paths in place for first boot.
- Click Apply and wait for initialization to finish.
- Open
http://SERVER_IP:3000. - Move to Advanced View only when you actually need external services or upstream feature overrides.
This repo is not a stripped-down wrapper. Advanced View exposes the broader practical Sure self-hosting surface plus AIO defaults for the bundled PostgreSQL + Redis path. Useful references:
- Power User Guide for external DB/Redis, AI routing, object storage, SSO, SMTP, and custom CA setup
- pgvector behavior notes for the internal-vs-external vector-store path
SKYLIGHT_ENABLED=falseis exposed intentionally so AIO users are not forced into upstream Skylight APM defaults
Some settings are deliberately template-owned rather than UI-owned. When upstream sees those environment variables, it may disable the matching app control and treat the container value as source of truth. That is expected in this wrapper.
Persistent data lives under the normal Unraid appdata paths:
- Rails uploads:
/mnt/user/appdata/sure-aio/system - PostgreSQL data:
/mnt/user/appdata/sure-aio/postgres - Redis data:
/mnt/user/appdata/sure-aio/redis - Backups:
/mnt/user/appdata/sure-aio/backups
If you care about the instance, back up the first three paths, or turn on the scheduled backups below.
Both images carry upstream Sure's full-instance backups (bin/sure-backup). A bundle holds the database (pg_dump
custom format), uploaded files and a manifest, under /backups/<version>/<timestamp>-<manual|scheduled>/.
- Scheduled: set
SURE_BACKUP_ENABLED=true. A bundle is made every day atBACKUP_SCHEDULE(UTC, upstream default0 2 * * *), and scheduled bundles older thanBACKUP_KEEP_DAYS(default 7) are pruned. Off by default, as upstream's backup service is opt-in. - Manual:
docker exec <container> sure-aio-backup create, andsure-aio-backup listto see them. - Restore:
docker exec <container> sure-aio-backup restore latest --yes(or a bundle's<version>/<name>). Sure's web and worker services stop for the restore and start again afterwards. A bundle restores into the same Sure version; keep the sameSECRET_KEY_BASE, which encrypts saved settings. - Off-site: set
BACKUP_DESTINATIONto an rclone remote and path (such ass3:my-bucket/sure) and define the remote with rclone'sRCLONE_CONFIG_<REMOTE>_*variables (the template offers the S3 set). Every hour/backupsis copied there and scheduled bundles pastBACKUP_KEEP_DAYSare pruned there, as upstream'sbackup-offsiteservice does.
- the bundled PostgreSQL and Redis services keep first boot simple, but more advanced deployments may still prefer external infrastructure
SECRET_KEY_BASEis required; do not rotate it casually on a live deploymentRAILS_ASSUME_SSLandRAILS_FORCE_SSLshould stayfalseunless you are intentionally fronting the app with a correct HTTPS-terminating reverse proxySURE_REFERRER_POLICYdefaults tostrict-origin-when-cross-origin; do not set it tono-referrerbehind a reverse proxy because Rails login origin checks can rejectOrigin: nullPOSTs- pgvector and qdrant-backed document search are advanced paths, not beginner defaults
- wrapper releases follow the upstream version plus an AIO revision, such as
v0.6.9-aio.1 - Stable upstream monitoring, release preparation, registry publishing, and catalog sync are owned by
aio-fleetfrom.aio-fleet.yml. mainpublisheslatest, the exact upstream version tag, an explicit AIO packaging line tag, andsha-<commit>- Alpha publishes to the dedicated
jsonbored/sure-aio-alphaimage repo with onlylatest-alphaand an explicit AIO revision tag such as0.7.1-alpha.7-aio.8. - Alpha release history lives in CHANGELOG.alpha.md and GitHub prereleases under the
sure-alpha/tag namespace so stable release history stays clean. - Changelog generation and XML
<Changes>sync are run centrally byaio-fleetduring release preparation.
See docs/releases.md for the central release process details.
Required local validation is aio-fleet first:
python3 -m venv .venv-local
.venv-local/bin/pip install -e "../aio-fleet[app-tests]"
.venv-local/bin/pytest tests/integration -m integration --junit-xml=reports/pytest-integration.xml -o junit_family=xunit1
cd ../aio-fleet
.venv/bin/python -m aio_fleet validate-repo --repo sure-aio --repo-path ../sure-aio
.venv/bin/python -m aio_fleet trunk run --repo sure-aio --repo-path ../sure-aio --no-fixCI cost model:
- relevant PRs and
mainpushes run the fast validation layers first - Docker-backed integration tests run for build-relevant changes, for
mainrelease-metadata commits when publish is still in play, and for manual dispatches - image publish stays gated behind the integration suite instead of treating skipped integration as acceptable
- local Docker validation stays explicit instead of hiding inside every routine commit hook
- Repo issues: JSONbored/sure-aio issues
- Unraid support thread: Sure-AIO support thread
- Upstream app: we-promise/sure
If this work saves you time, support it here: