CasaOS-Store/Apps
Giuseppe Galilei ba4ae76a55
Unifi network application (#374)
Closes #371 

As said in issue #371, casaos currently offers unifi-controller, which
is being deprecated starting January 1st.
Linuxserver has replaced it with unifi-network-application. However
deployment is a bit more complicated.
You can read more
[here](https://docs.linuxserver.io/images/docker-unifi-network-application/).

I wrote a compose file that deploys both unifi-network-application and
mongodb.

For mongoDB the chosen version is 3.6 and I believe it should not be
changed, because:
- it is officially supported by unifi-network-application
- it is the latest mongodb version supported by ARMv8A devices (aka
Raspberry Pis), newer versions require ARMv8.2

For unifi-network-application I tested the latest version (as of today
8.0.24) and it seems to work well, however I'm asking for more testing
and opinions, reason why in the compose I left the "latest" tag.

The compose also creates a bridge network, needed for hostname
resolution between the two services, needed at least until [this
issue](https://github.com/IceWhaleTech/CasaOS/issues/1348) is resolved.

The only caveats, from a user perspective, are described in the app
"tips", I paste them here:

To properly initialize the database, before installing, create a file
named `init-mongo.js` in the `/DATA/AppData` folder, with
        the following content:
        ```
db.getSiblingDB("unifi-db").createUser({user: "unifi", pwd: "pass",
roles: [{role: "dbOwner", db: "unifi-db"}]});
db.getSiblingDB("unifi-db_stat").createUser({user: "unifi", pwd: "pass",
roles: [{role: "dbOwner", db: "unifi-db_stat"}]});
        ```
This file is used only upon the first container start, to perform
initial configuration.
If you want, you can change the password `pass` modifying this file and
then the container's environment variables.

Because the network application runs inside Docker by default it uses an
IP address not accessible by other devices.
So, for it to adopt other devices, it is required to use port `8080` and
change the inform IP address. To do so, go in settings
and search for the `Inform Host` option, there select override and set
the address to that of the host.
Often, it is also needed to ssh into the devices you want to adopt and
manually set the inform IP address, the command
needed for doing so is `set-inform http://HOST-ADDRESS:8080/inform`.

For more
[information](https://docs.linuxserver.io/images/docker-unifi-network-application/)

I'm currently using an almost identical compose, deployed through
portainer on a Raspberry Pi 3 not using CasaOS, and it is working
flawlessly. (be careful on low memory devices because this application
can use about 500MB of memory)
I tested this PR on an x86 device and I can confirm deployment is
succesful and the network-application launches and configures correctly.
However I didn't test the adoption of unifi devices and everyday usage.
I believe there should be no issue, but any other test is warmly
welcomed.
Other useful info:
https://github.com/GiuseppeGalilei/Ubiquiti-Tips-and-Tricks/blob/main/Unifi%20network%20application%20-%20CasaOS/instructions.md

Happy holidays!

---------

Co-authored-by: Tiger Wang <tigerwang@outlook.com>
2024-01-26 17:54:26 +08:00
..
2FAuth Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
AdGuardHome Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Adminer update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
Alist Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Anaconda3 add:Anaconda3 (#378) 2024-01-24 16:33:33 +08:00
Autobrr update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
Bazarr fix&add container_name (#224) 2023-07-26 17:05:00 +08:00
Calibre-web Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
ChatGPT-Next-Web fix&add container_name (#224) 2023-07-26 17:05:00 +08:00
ChatbotUI fix&add container_name (#224) 2023-07-26 17:05:00 +08:00
CloudBeaver update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
Cloudflared Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Crafty Update Crafty Controller to 4.2.2, fix missing screenshots (#399) 2024-01-25 11:16:54 +08:00
Databag update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
Ddns-go Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Deluge Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Duplicati update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
ESPHome update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
Emby Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Embystat Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
EmulatorJS update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
FileBrowser fix&add container_name (#224) 2023-07-26 17:05:00 +08:00
Filedrop update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
Gitea fix&add container_name (#224) 2023-07-26 17:05:00 +08:00
Grafana Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Handbrake update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
HoloPlay update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
HomeAssistant Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Homebridge update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
JDownloader2 update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
Jackett Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Jellyfin Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Jellyseerr chore: fix docker compose throw error (#401) 2024-01-25 14:17:13 +08:00
LabelStudio app: label studio (#251) 2023-08-15 14:57:51 +08:00
Lazylibrarian Tweaks to UID, GID, TZ and replace unwritable /path/ (#358) 2023-12-05 09:22:59 +08:00
Lidarr Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Lucky Update lucky version to 2.6.1 (#380) 2024-01-14 10:54:14 +08:00
MariaDB Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
MediaFetchPro bump app version (#282) 2023-09-22 21:40:37 +08:00
Medusa chore: fix docker compose throw error (#401) 2024-01-25 14:17:13 +08:00
Memos chore: bump memos version to 0.18.2 (#406) 2024-01-26 16:51:45 +08:00
MineOS Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Mongo update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
MongoDB4 update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
Motioneye update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
MySpeed update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
Mylar3 Tweaks to UID, GID, TZ and replace unwritable /path/ (#358) 2023-12-05 09:22:59 +08:00
N8n n8n update 1.16.0 (#364) 2023-12-21 11:28:00 +08:00
Navidrome update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
Netdata update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
Nextcloud Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
NginxProxyManager Update NPM version to 2.11.1 (#397) 2024-01-24 17:44:04 +08:00
Node-RED Update Node-Red container to 3.1.0-18 (#291) 2023-10-08 18:09:55 +08:00
Nzbget fix&add container_name (#224) 2023-07-26 17:05:00 +08:00
Ombi Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
OpenHAB update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
OpenSpeedTest update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
Overseerr Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Petio fix&add container_name (#224) 2023-07-26 17:05:00 +08:00
PhotoPrism Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Pihole Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Plex Plex Update (#362) 2023-12-12 12:28:46 +08:00
Portainer Update docker-compose.yml (#376) 2023-12-29 22:36:35 +08:00
PostgreSQL update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
Prowlarr Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
PyLoad update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
Radarr Update Radarr Version to 5.2.6 (#381) 2024-01-24 16:43:15 +08:00
Readarr Tweaks to UID, GID, TZ and replace unwritable /path/ (#358) 2023-12-05 09:22:59 +08:00
Resilio-sync Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Sabnzbd Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Sickchill Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Siyuan-Note update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
Smokeping Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Snapdrop Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Sonarr fix&add container_name (#224) 2023-07-26 17:05:00 +08:00
Stremio update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
Syncthing Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Tautulli Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Threadfin update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
Transmission update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
Trilium fix: fix app format error (#404) 2024-01-26 10:43:58 +08:00
Twingate fix: fix app format error (#404) 2024-01-26 10:43:58 +08:00
Unifi-controller Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
Unifi-network-application Unifi network application (#374) 2024-01-26 17:54:26 +08:00
UptimeKuma update: UptimeKuma (#363) 2023-12-13 13:17:24 +08:00
Vaultwarden Update ver and arch (#343) 2023-11-27 11:28:16 +08:00
VoceChat update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
WireGuardEasy update: Improving AppStore Quality (#400) 2024-01-25 10:31:03 +08:00
qBittorrent update qbit version to fix no password problem (#359) 2023-12-05 11:12:38 +08:00