Machine-translated – improvements welcome. Suggest an improvement
TrueNAS¶
Tested: template automatically, device not yet
The template for the Custom App is started as a trial on GitHub's machines with every change (Linux with Docker, amd64). The app in the catalogue is maintained by TrueNAS; it uses the same images. There is no report from a real device yet. What that means is described under Tested platforms.
This is how you set up Ablago on TrueNAS Community Edition 24.10 or newer. These versions run apps with Docker. There are two ways:
- From the app catalogue (recommended): Ablago is in TrueNAS's community catalogue. Installing and updates go through the TrueNAS interface.
- As a Custom App with the template: if you want to choose settings yourself, e.g. dms-komplett or your own paths.
The two ways differ in a few points:
| App catalogue | Custom App (template) | |
|---|---|---|
| Address | http://<TrueNAS>:30607 (port can be changed) |
http://<TrueNAS>:8080 |
| Folders or datasets | files, keys, backups, postgres_data |
files, geheim, sicherung, postgres |
| Database | PostgreSQL 18 | PostgreSQL 18 (up to Ablago 0.305: 17) |
| Setup code | none – setup only works from your home network | yes, in the log and in geheim/EINRICHTUNGSCODE |
| Owner of the files | 568:568 (apps) | the owner of the folders |
| Updates | Apps → Ablago → Update | Pull Images and restart |
Where the manual otherwise says geheim and sicherung, the folders of the catalogue app are called keys and backups.
From the app catalogue¶
- Apps → Discover Apps, search for Ablago and choose Install. The app is in the Community train; its page in the catalogue: apps.truenas.com/catalog/ablago_community.
- Database password: enter a long password made of letters and numbers. The database takes it over only on the very first start.
- Port: the default is
30607. Change it only if it is already in use on your system. - Storage: for
files,keys,backupsandpostgres_data, choose an ixVolume each (TrueNAS creates the dataset itself) or your own path (Host Path) in a dataset you created beforehand. With your own paths you find the folders more easily later, for example for the off-site backup.files: your documents,keys: the key – keep it separate from the backups,backups: Ablago's backups,postgres_data: the database.
- User: the app stores the files as user and group 568 (apps). With your own paths, the datasets must belong to this user (choose the template Apps when creating them). Ablago starts as root, takes over the folders and then keeps running without administrator rights.
- Install. After one or two minutes the app shows Running under Apps → Installed.
Finish the setup right away
The app from the catalogue has no setup code. Until the first account exists, any device in your home network could therefore take over the setup (from the internet this is not possible). Open http://<TrueNAS>:30607 right after installing and finish the setup before you leave the app running unattended for long.
Then open http://<TrueNAS>:30607 in your browser. The wizard does not ask for the database; it is already connected. There is no setup code.
How the wizard continues: Choose Set up new – or Restore from a backup if you are moving from another device. Then you enter the name of your household and create your account – with your email address and your password; it may administer Ablago. Then you say what you use Ablago for – home, work or both; for work straight away with your organisation. After that you decide what Ablago may do; matching that, Ablago chooses the packages such as text recognition, and optional things like sending email follow. After "Set up now" you receive the key and emergency sheet. Every step has ? Help with pictures at the top right; everything is described in detail in the Administrator manual.
Updates (app catalogue)¶
- Updates: Apps → Ablago → Update, as soon as TrueNAS has the new version in its catalogue. That is usually a few days after Ablago's stable release, because TrueNAS updates the versions in its catalogue itself. The data stays in the datasets.
- Off-site backup: copy the dataset or folder
backupsto another place with a Cloud Sync Task or Replication. Keep the content ofkeysseparately (e.g. with the emergency sheet). More under Off-site backup.
As a Custom App with the template¶
1. Create a dataset and folders¶
- Datasets: in the pool that holds your apps (
tankin the template), create a datasetapps/dmswith the template Apps. - In this dataset, create four folders:
postgres,files,geheim,sicherung. You can do this e.g. via an SMB share or the shell under System → Shell:mkdir -p /mnt/tank/apps/dms/{postgres,files,geheim,sicherung}
Intake folder for the scanner
Also create a fifth folder eingang next to them. The template mounts it, and some NAS abort on start if a mounted folder is missing. It becomes the Intake folder: every file your scanner or the NAS puts there becomes new post. Share it on the NAS for the scanner. If you don't need a scanner, it simply stays empty.
2. Create the app¶
- Apps → Discover Apps → ⋮ → Install via YAML.
- Name:
dms. - Paste the content of the template
deploy/truenas/docker-compose.yml. - Enter the password: in the line
x-passwort:, replaceHIER-EIN-LANGES-PASSWORT-EINTRAGENwith a long password made of letters and numbers. If your pool is not calledtank, replace/mnt/tank/in the paths. - Save.
Change the password before the first start
The database takes over the password only on the very first start.
3. Set up¶
- Open
http://<TrueNAS>:8080in your browser. - The setup code is shown under Apps →
dms→ Workloads →app→ Logs. It is also in/mnt/tank/apps/dms/geheim/EINRICHTUNGSCODE. - The wizard does not ask for the database; it is already connected.
How the wizard continues: Choose Set up new – or Restore from a backup if you are moving from another device. Then you enter the name of your household and create your account – with your email address and your password; it may administer Ablago. Then you say what you use Ablago for – home, work or both; for work straight away with your organisation. After that you decide what Ablago may do; matching that, Ablago chooses the packages such as text recognition, and optional things like sending email follow. After "Set up now" you receive the key and emergency sheet. Every step has ? Help with pictures at the top right; everything is described in detail in the Administrator manual.
Updates (Custom App)¶
- Updates: Apps →
dms→ Update (or Pull Images and restart). The data stays in the dataset. - Off-site backup: copy the
sicherungfolder to another place, as described below.
From PostgreSQL 17 to 18
Up to Ablago 0.305 the template had postgres:17. An existing installation keeps running with it. Moving to 18 works via a backup: Updating → PostgreSQL 18.
Off-site backup¶
Copy the folder with the backups (backups for the catalogue app, sicherung for the Custom App) to another place with a Cloud Sync Task or Replication. The backups are encrypted, so cloud storage only sees unreadable files. Exports are not included: a full export is unencrypted and is therefore kept in its own export folder, never with the backups. Snapshots of the dataset are extra protection, but don't replace a copy off site.
Pictures to follow
This guide has no screenshots yet. If a menu item looks different for you, feel free to write it in an issue.