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¶
- Docker → Add Container, at the top under Template choose the template Ablago.
- The values usually fit as they are:
- Web interface: port
8080. - Folders:
/mnt/user/appdata/ablago/files,…/geheim,…/sicherungand…/postgres(the built-in database, do not change by hand). - Under Show more settings (advanced settings): PUID
99and PGID100. 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.
- Web interface: port
- 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¶
- Open
http://<Unraid>:8080in your browser. - 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:
- In the old installation, create a backup under Workbench → Backup. Have the emergency sheet with the key ready; you will need it shortly.
- Copy the backup file (
.dms-sicherung, plus the.jsonnext to it) from/mnt/user/appdata/dms/sicherungto/mnt/user/appdata/ablago/sicherung, for example through theappdatashare. - Stop the old containers
dmsanddms-datenbank, but do not delete them yet. - Install the new template as described above under 1. and 2.. The stopped old container frees port
8080. - 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. - Sign in and check that everything is there. Only then remove the old containers
dmsanddms-datenbank(Docker → the container's icon → Remove). Delete the folder/mnt/user/appdata/dmsonce 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:
- Under Apps (Community Applications), search for Docker Compose Manager and install it.
- Docker → Compose → Add New Stack, name
dms. - On the stack, go to Edit Stack → Compose File and paste the content of the template
deploy/unraid/docker-compose.yml. - Enter the password: in the line
x-passwort:, replaceHIER-EIN-LANGES-PASSWORT-EINTRAGENwith a long password made of letters and numbers. The database takes it over only on the very first start. - Save Changes, then Compose Up. Unraid creates the folders under
/mnt/user/appdata/dms/itself;eingangis already mounted there as the intake folder. - Open
http://<Unraid>:8080in your browser. The setup code is shown in the log of the containerdms-app-1(Docker → the container's icon → Logs). It is also inappdata/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 inappdata/dms/sicherung). The plugin Appdata Backup additionally backs upappdata, 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.