Skip to content

Machine-translated – improvements welcome. Suggest an improvement

Unraid

Tested: template automatically, device not yet

The template on this page is installed as a trial with every release (Linux with Docker, amd64): set up, restart, sign in, files belong to 99:100. 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 Unraid 6.12 or newer. The easiest way is the template Ablago: one container with the database built in. You need no database password and no database port.

Soon in Community Applications?

Ablago is meant to go into Community Applications (#183). Until then, you fetch the template with one command, as described below.

1. Fetch the template

Open the Terminal at the top right in Unraid (icon >_) and paste this line:

wget -O /boot/config/plugins/dockerMan/templates-user/my-Ablago.xml https://raw.githubusercontent.com/motom001/dms-appstore/main/unraid/ablago.xml

The template is now among your own templates. You can close the terminal afterwards.

2. Create the container

  1. Docker → Add Container, at the top under Template choose the template Ablago.
  2. The values usually fit as they are:
    • Web interface: port 8080.
    • Folders: /mnt/user/appdata/ablago/files, …/geheim, …/sicherung and …/postgres (the built-in database, do not change by hand).
    • Under Show more settings (advanced settings): PUID 99 and PGID 100. The files then belong to nobody:users, as usual on Unraid, and you can reach the backups through the share.
    • Leave TRUST_PROXY empty. Only if a reverse proxy runs directly on Unraid (not as a container) do you enter the address the Workbench names for it.
    • Setup code aus (off): setup works without a code, but only from your home network. So set up Ablago right after it starts.
  3. Apply. Unraid pulls the image and starts the container; it creates the folders itself.

Optional: intake folder for the scanner

If your scanner should put files straight into Ablago (intake folder), add a path to the container with Add another Path, Port, Variable, Label or Device: container /eingang, host /mnt/user/appdata/ablago/eingang. Share the folder as an SMB share for the scanner.

3. Set up

  1. Open http://<Unraid>:8080 in your browser.
  2. The wizard guides you through setup. It does not ask for a setup code or the database.

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.

Switching from the old template

Until now there were two templates, Ablago (alt, mit eigener Datenbank) (dms) and Ablago-Datenbank (dms-datenbank), with folders under /mnt/user/appdata/dms/. They are deprecated. This is how you move to the new template without losing anything:

  1. In the old installation, create a backup under Workbench → Backup. Have the emergency sheet with the key ready; you will need it shortly.
  2. Copy the backup file (.dms-sicherung, plus the .json next to it) from /mnt/user/appdata/dms/sicherung to /mnt/user/appdata/ablago/sicherung, for example through the appdata share.
  3. Stop the old containers dms and dms-datenbank, but do not delete them yet.
  4. Install the new template as described above under 1. and 2.. The stopped old container frees port 8080.
  5. Open http://<Unraid>:8080, choose Restore from a backup in the wizard, select the backup and enter the key from the emergency sheet. Everything else is described under New NAS, old backup.
  6. Sign in and check that everything is there. Only then remove the old containers dms and dms-datenbank (Docker → the container's icon → Remove). Delete the folder /mnt/user/appdata/dms once you are sure you no longer need it.

If you ran Ablago with the Compose Manager so far (project dms), do the same: create a backup, stop the project with Compose Down, install the new template, restore the backup.

With its own database (two containers)

If you want to run PostgreSQL separately from Ablago so that it gets security updates independently (One or two containers?), use the plugin Docker Compose Manager:

  1. Under Apps (Community Applications), search for Docker Compose Manager and install it.
  2. Docker → Compose → Add New Stack, name dms.
  3. On the stack, go to Edit Stack → Compose File and paste the content of the template deploy/unraid/docker-compose.yml.
  4. Enter the password: in the line x-passwort:, replace HIER-EIN-LANGES-PASSWORT-EINTRAGEN with a long password made of letters and numbers. The database takes it over only on the very first start.
  5. Save Changes, then Compose Up. Unraid creates the folders under /mnt/user/appdata/dms/ itself; eingang is already mounted there as the intake folder.
  6. Open http://<Unraid>:8080 in your browser. The setup code is shown in the log of the container dms-app-1 (Docker → the container's icon → Logs). It is also in appdata/dms/geheim/EINRICHTUNGSCODE. The wizard does not ask for the database.

Updates and backup

  • Updates: with the template, Docker shows an available update; Update pulls the new image. With the Compose Manager: on the stack, Update Stack (or Compose Pull and Compose Up).
  • Off-site backup: Ablago's backups end up in appdata/ablago/sicherung (with the Compose Manager in appdata/dms/sicherung). The plugin Appdata Backup additionally backs up appdata, but only a copy in another place protects against the server failing.

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.