Ln -s /usr/bin/mongod Configure Service Management Create UniFi Service Directory and FilesĬreate an s6 service directory for UniFi.Īdd the run script, using your favourite editor. The controller is written in Java, hence the Java process and it in turn, launches a dedicated instance of MongoDB to store its configuration and run-time data.Ĭhange to the parent folder within which you wish to install the UniFi Controller.ĭownload the generic unix archive of the VERSION you wish to install. The below shows a schematic process tree of how the UniFi Controller will be started and supervised by s6. Install openjdk8-jre from the community repository.Įdit /etc/apk/repositories and uncomment the appropriate community repository for your Alpine version:Īpk add s6 which is a service supervision suite, for reliably and efficiently starting, stopping and keeping services running. Feel free to adjust the steps below, replacing /srv/unifi with wherever you would prefer to install the UniFi Controller software.
The choice of /srv for the UniFi Controller's root directory is based on the fact that it contains both run-time and configuration data, so installing to /usr/local, /opt or /home didn't seem apt. At the time of writing this, a native Alpine Linux package is not available.įurthermore, this guide uses the incredibly reliable and efficient s6 supervision suite to start and control the UniFi Controller.Ī summarised schematic of what will be installed on the filesystem.
This guide explains how to install the generic Unix UniFi Controller, as available from Ubiquity Networks.