https://raw.githubusercontent.com/OrcVole/wger-cloudron/main/CloudronVersions.json
Description
2.7
wger
wger (pronounced "ˈvɛɡɐ") is a free, open source workout, fitness and nutrition manager. It covers the whole training loop: build routines, log workouts, track body weight and measurements, and plan meals against a searchable ingredient and nutrition database that includes barcode scanning. A gym management mode lets a trainer administer members, assign routines and record progress on their behalf.
The official wger mobile apps (Android and iOS) work with this package, including Android without Google services, such as LineageOS or GrapheneOS, using the app from F-Droid. The apps sync through PowerSync, which the package includes and serves on the app's own address, so a phone needs only the server address. A REST API ships alongside the web application.
This package runs wger's own gunicorn application server together with its Celery worker and beat scheduler under supervisor, fronted by nginx. Its database is a PostgreSQL server inside the app, because the mobile apps' sync needs a database feature (logical replication) that the Cloudron PostgreSQL addon does not offer. Backups carry a consistent copy of that database, and restoring a backup returns it to the backup's contents. It uses the Cloudron Redis addon for its cache and queue, and the Cloudron email addon to relay outgoing mail (password resets, notifications). Uploaded media (exercise images, custom photos) is stored in the app's persistent data directory, not in the container image.
wger's exercise database can synchronise weekly from the public wger.de instance to pick up new exercises, images and translations; this is on by default and configurable. Ingredient synchronisation against wger.de is off by default, because the ingredient dataset is large and grows the database considerably; it can be turned on if wanted.
PowerSync is licensed under the Functional Source License (FSL-1.1-ALv2), which becomes Apache 2.0 two years after each release; wger itself is AGPL-3.0.
Recent Changes
The wger mobile apps (Android and iOS, app version 2.0 and later) now work with this package. They need a sync service called PowerSync, which the package now includes and serves at
/ps/on the app's own address. Nothing needs configuring on the phone beyond the server address.This includes Android without Google services (for example LineageOS or GrapheneOS), using the app from F-Droid.
The database moves into the app. PowerSync needs logical replication, which the Cloudron PostgreSQL addon does not offer, so the package now runs its own PostgreSQL 18.
The first start after this update copies all data from the addon database into the app's own database and checks that every table has the same number of rows before the app starts. This first start takes longer than usual, in proportion to the amount of data. If the check fails, the app stops with a clear error and the addon database is left untouched.
The addon database is kept, unchanged, as a rollback copy. It is no longer used or updated, and a later version will remove it.
To go back to 1.1.0, restore the backup taken before this update.
Backups now contain a consistent dump of the app's database. Restoring a backup, including an in-place restore, returns the database to the backup's contents. The database it replaces is kept aside inside the app until the next restore.
After a restore, the mobile apps download their data from the server again automatically.
Memory limit raised from 2 GB to 3 GB for PostgreSQL and PowerSync.
PowerSync 1.26.1 is included under the Functional Source License (FSL-1.1-ALv2, which becomes Apache 2.0 after two years); its licence text ships with the package.
The workaround that skipped one upstream database migration is no longer needed and has been removed.
Correction to 1.1.0: that version did not support the mobile apps, and its changelog should have said so.
