Yunohost: Official App Package or Manual Docker Compose?
Choose between Yunohost packaged apps and manual Docker Compose based on SSO, backup, and maintenance needs.
18 Feb 2026, 01:58 UTC

Decision and constraints
You need to host an application on a Yunohost server, but the official app catalog may not include it. The decision is whether to install an official Yunohost package or run the application manually with Docker Compose. If an official package exists, use it. It integrates with Yunohost single sign-on (SSO), which authenticates users through the local LDAP directory, and it is included in automated backups. Reserve manual Docker Compose for apps with no packaged equivalent, and accept that you will manage TLS, backups, and user authentication yourself.
This guide applies to Yunohost 11.x on Debian 12. You need root or sudo access to the Yunohost host, one public IP address, and a domain you control with DNS records you can point at the server.
Supported options compared
| Factor | Official Yunohost package | Manual Docker Compose |
|---|---|---|
| SSO and LDAP | Integrated with Yunohost SSO and LDAP | Not integrated; users authenticate separately unless you configure LDAP binding manually |
| Backups | Covered by yunohost backup | Excluded; you must back up Compose files and volumes separately |
| TLS and reverse proxy | Handled by Yunohost nginx and Let's Encrypt | You configure certificates and proxying independently |
| Upgrades | yunohost app upgrade <appid> | Pull new image and restart containers manually |
| Admin visibility | Listed in web admin and yunohost app list | Invisible to Yunohost admin UI |
| Upstream version | May lag behind latest release | You control the image version and environment variables |
Trade-offs
Packaged apps reduce operational toil. Yunohost handles the nginx virtual host, Let's Encrypt certificate, SSO login wall, and backup inclusion. The downside is packaging lag: the official version may be older than the upstream release, and you cannot set arbitrary environment variables without modifying the package.
Manual Docker Compose gives you the latest upstream image and full control over environment variables, but it bypasses Yunohost's safety net. Containers do not appear in yunohost app list, backups skip their volumes, and port 80 or 443 bindings can conflict with Yunohost's nginx if you expose container ports directly to the host.
Install an official Yunohost app
Run these commands on the Yunohost host as root or with sudo. Replace <appid> with the package identifier from the Yunohost app catalog, and <domain> with your domain.
1. Check whether the app is packaged
yunohost app list --available | grep <appid>
Expected result: a catalog entry appears. If nothing matches, no official package exists.
2. Install the app
sudo yunohost app install <appid>
During installation, Yunohost asks for the domain, path, and admin user. It creates an nginx configuration, requests a Let's Encrypt certificate if the domain is pointed at the server, and registers the app in its internal database.
3. Verify SSO
Open the app URL in a private browser window.
Expected check: the browser redirects to the Yunohost SSO login page. After authenticating, you reach the application. If you reach the application directly without SSO, the package is not configured correctly.
Deploy manually with Docker Compose
Use this path only when no official package exists. Store Compose files under /opt/docker/<app>, replacing <app> with a short service name.
1. Create the directory
sudo mkdir -p /opt/docker/<app>
2. Add a Compose file
Place a docker-compose.yml file there. Do not bind container ports 80 or 443 directly to the host if Yunohost's nginx already uses them.
3. Expose the container through Yunohost
In the Yunohost web admin, create a subdomain such as app.example.com and configure a reverse-proxy location to the container's internal port. Manage TLS separately; the container does not receive automatic security updates through Yunohost.
Risk: if the container binds to host port 80 or 443, Yunohost's nginx may fail to start or reload. Check for conflicts before starting the container:
sudo ss -tlnp | grep ':80\|:443'
Validation
After either installation method, verify the result:
- Packaging confirmation:
yunohost app list --installedshould list the app and its version. - Backup coverage:
sudo yunohost backup create --apps <appid>followed byyunohost backup listshould show the app in the backup archive. Manual Docker volumes are not included. - SSO check: open the app URL in a private window and confirm redirection to the Yunohost login page.
Limitations and how to check
Official packages may trail upstream versions. Check the packaged version against upstream release notes before assuming you have the latest security fixes. Manual Docker Compose workloads require separate filesystem snapshots for /opt/docker/<app> and any named volumes. Yunohost backups will not protect them.
To confirm a manual workload is not accidentally exposed on host ports, run sudo ss -tlnp and verify that only Yunohost-managed services listen on 80 and 443.
Rollback
Installing an official app changes system state. To remove it:
sudo yunohost app remove <appid>
This removes the app, its nginx configuration, and its database. It does not restore user data; restore from a Yunohost backup if needed. For manual Docker Compose, run docker compose down in the application directory; volumes persist unless you delete them explicitly.
Behavior described applies to Yunohost 11.x on Debian 12. Older releases may lack current packaging APIs or catalog entries. Verify your version with yunohost --version before following these steps.
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.