This tutorial showed how to self-host the Unifi Controller on a Synology NAS. The default container runs Unifi Controller as root. to get a specific version number, as shown in the table below. Scroll down to see the BIND_PRIV (bind to lower ports) and RUNAS_UID0 (run as root) variables. Select Container on the left it will take a few minutes to start. which then re-uses the configuration from the local disk. One-time setup: create the unifi directory on the Docker host. 13. Unifi Controller, Java, or your OS. It wasnt just missing in the screenshot, it is actually missing in that container configuration right from Docker Hub. Pick the right timezone. I thought it might have to do with the 218+ performance. 17. Run information, in general you will not need to touch this volume. In a browser type https://your-nas-ip:8443, You can then go back to unifi setup guide and log in. Set the value to be your time zone. SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts. 3. The current "latest" version is Unifi Controller 7.1.68. Now you can start the container again: Optionally adjust the port if it has been changed within the system.properties. How to Self-host the Password Manager Bitwarden on a Synology NAS! These are no longer actually volumes, rather they exist for legacy compatibility. document.getElementById( "ak_js_1" ).setAttribute( "value", ( new Date() ).getTime() ); This website uses cookies to improve your experience while you navigate through the website. If you are looking to run your Ubiquiti gear you will need an Unifi Controller at some point unless you want to pay for the cloud-hosted one. Thanks so much for checking out the tutorial! Also, there seems to be some issues with seeing IP cameras because of the extra layer of the VM on the NAS. Then use the following steps to set up the directories Update: for some strange reason I now got it to work. Thanks ! Click to email a link to a friend (Opens in new window), Click to share on WhatsApp (Opens in new window), Click to share on Skype (Opens in new window), Click to share on Twitter (Opens in new window), Click to share on Facebook (Opens in new window), Click to share on Reddit (Opens in new window), Click to share on Pinterest (Opens in new window), Click to share on Tumblr (Opens in new window), Click to share on Telegram (Opens in new window), Click to share on LinkedIn (Opens in new window), Click to share on Pocket (Opens in new window), The Best 6-Bay or RAID 6 NAS to Buy in 2022, Recommended 8-Bay NAS Drive to Buy in 2022. Each time you want to start Unifi, use this command. Your email address will not be published. For Windows, see the Microsoft guide for installing Docker. CPU: ~19-30% I played around with this AP several months ago (not really having a controller at the time) and I do see 2 SSIDs that I had created. Used to set max thread stack size for the JVM Because I need one USB modem stick and USB DAC works with HA, after upgraded to DSM7, I had run HassOS VM for a long period, and had configured a cpu load sensor, its glad to say that the cpu load comes down to a normal level after couple of days, as low as 7% on idle. Hi, I am coming from an outside IP and I configure the docker and container, also added the port 10001. with the address of the Docker host computer. The symptom I mainly have is still not going away though: The iOS app everytime finds my U6 lite as an independent device but it also is seen by the Unifi Network Controller. 21. Eine SDMMC Karte kann nur wenige Schreibvorgnge durchfhren, ehe diese defekt ist. If the container fails to start because port 8080 is already in use, the port can be modified as follows: Exit Nano (CTRL-X) and save the changes. Also running file backup, indexer, and Video Station sporadically. I have connected the U6 lite through LAN into my local network. Using this setting you can change the inform host to the hostname/IP you would like to the correct address. Used to start the JVM with additional arguments. Overall I really like running as many things off the NAS as possible because after all, it is a 24/7 server and often under utilized for how much power/storage it has (compared to a pi). It was critical for me to recognize and adopt devices on the network. It was missing in the screenshot, ive updated the screenshot. Registration is free, easy and fast! This site does not assume liability nor responsibility to any person or entity with respect to damage caused directly or indirectly from its content or associated media. How to Install Portainer on a Synology NAS. Select your active firewall profile and press Edit Rules. CPU: ~10% Important: Two points to be aware of when you're setting up your Unifi Controller: To change options, stop the Docker container then re-run the docker run command There are currently no hot-fix or CVE warnings affecting Unifi Controller. That should mitigate the weird times and dates the logs pick up and make sure the firewall actually turn on during the correct times if you configured a JSON file. The main reason that I will use this controller is to configure and maintain my new US16XG Unifi switch from UI. On the General Settings page press Next to continue. For Unifi-in-Docker, this uses the most recent stable version. How do Asustor DeadBolt Ransomware works? Thanks for this. But opting out of some of these cookies may affect your browsing experience. WAN access to the controller is OK, when you have: Thanks. Now you will be redirected to https://:8443/manage/wizard/. See UniFi - Ports Used for more information. 8. Be carefull you are using the correct ip address. 6. Now we need to open the ports on the firewall. Any ideas? This tutorial will show how to self-host the Unifi Controller on a Synology NAS. All reviews and suggestions are solely the authors opinion and not of any other entity. Everything works great ! 8080,8443,8843,8880,6789. For example, in this project the container named jacobalberty/unifi To perform this setup you need to install Docker on your NAS. Does anyone have any experience installing unifi controller on at synology that doesn't support docker using the terminal? Would recommend running this container via Portainer solution also hosted on your Docker host, and for more info on it, you can read up here, and then come back. If your certificate or private key have different names, you can set the environment variables CERTNAME and CERT_PRIVATE_NAME to the name of your certificate/private key, e.g. Where possible (and where appropriate) please provide as much information about your requirements, as then we can arrange the best answer and solution to your needs. Passionate about Mac, NAS/SAN, virtualization, and Docker environments. expose the first three with the -p option. Surveillance Station runs 24/7 with 6 connected cameras. I hope this was what you meant. Unlike some other articles here, this will be a short one just to see how to get this container up and running. The recommended docker run command above starts A Docker container wraps everything into one well-tested bundle. Now add the UDP ports. Enter your email address to subscribe to this blog and receive notifications of new posts by email. You are urged to move to the new volumes ASAP. To use custom SSL certs, you must map a volume with the certs to /unifi/cert. Or is it another way? (By default, the Docker container usually gets the internal address 172.17.x.x Default: 80, PORTAL_HTTPS_PORT and Unifi Controller software. (Im a new private user to Ubiquiti, so still learning a lot) Alvast bedankt! Use at your own risk. 5. Learn more about Reddits use of cookies. 19. Set the starting size of the javascript engine for example: 1024M An upgrade to a new version of Unifi Controller simply retrieves a new Docker container, Confirm your settings and Finish. To get them to work, I had to SSH into the AP and set-inform http://nas1:8080/inform. self-hosted task management platform, See all 53 posts Does anyone have any experience installing unifi controller on at synology that doesn't support docker using the terminal? -Select Enable auto-restart. These cookies do not store any personal information. Not sure if this had to do with the IP change only, but it worked. Select Environment and add a new environment variable named TZ. Could probably drop it down to 1 core, but the more RAM the better. For letsencrypt certs, we'll autodetect that and add the needed Identrust X3 CA Cert automatically. Within that directory, create two sub-directories: data and log. This is a release candidate but pushing to , Add some output to show that the hotfixes have been validated, https://community.ubnt.com/t5/UniFi-Routing-Switching/IMPORTANT-Debian-Ubuntu-users-MUST-READ-Updated-06-21/m-p/1968251#M48264, Current Stable: Version 7.1.68 as of 2022-07-29, Release Candidate: 7.2.92-rc as of 2022-07-29, When your browser initially connects to the link above, you will Note: In Docker, specifying an image with no tag In Edit Profile windows select Create. 6 min read, Intro I took a backup of everything from my install running on my laptop and put that backup in to this one running on Synology. Get all the latest & greatest posts delivered straight to your inbox, trudesk. Question will be anonymously added on Q&A forum. I had to set RUNAS_UID0 to true, otherwise the connection to the controller just timed out. And take note of step 11 (BIND_PRIV and RUNAS_UID0) set to false. Select the image you just downloaded and press the Launch button. see a warning about an untrusted certificate. I only see the CPU spike up occasionally for certain activities, but the RAM usage rarely goes up. You can add a package via the community it is the unify2 if I'm correct. In Docker terminology, these versions are specified by "tags". You can place scripts you want to launch every time the container starts in here, /var/run/unifi JavaScript is disabled. Regarding speed with my current setup speeds are about 350-450MB/s (R/W) with RAID6 and RAID5 arrays (RS3614RPxs in both cases). We also use third-party cookies that help us analyze and understand how you use this website. Enable this with true if you run a system with a lot of devices They run on ~10-15W of power, so not much more than a cloud key. If you need technical support, try Kingbiker. To install, a couple lines on the command-line starts the container. Click on Launch. -When the download has been completed, the Launch button will be enabled. Once you have it up and running, make sure to log into your Portainer setup and create a new stack (using docker-compose) with the following compose file (you can of course change it any way you want): In order to get to your user and group ID under which you want to run your container do the following: Make sure to visit the linuxserver hub page for more info on all the ports and configuration parameters. For more information regarding the naming of the certificates, In the Create Firewall Rules window select Custom and press the button Custom. -Select Network tab and select use the same network as Docker Host. Thanks for this great addition! Select the Volume tab and press the button Add Folder to add a volume for the docker container to save data. 5. Using Docker, you can stop worrying about version You will receive an email from us when someone replies to it. I don't think that you will have much luck doing this. . I assume thats the IP I should use correct? uses the most recent Release Candidate from the UniFi APT repository. Options section In Protocol select UDP. while Unifi devices connect to the (external) address of the Docker host.) 15. You can pass in environment variables using the -e option when you invoke docker run In the Ports field enter 3478. (You can also select Use the same network as Docker Host in the Network tab, but this way port numbers which are in use can be changed). above with the new options. Bei einem Raspberry muss man etwa alle 3/4 Jahr eine neue SDMMC-Karte austsuschen. 18. I had to SSH into the NAS and run sudo chown -R 999:999 VOLUME/docker/unifi/ which changed the owner of all files under unifi folder to 999. 11. For your Unifi devices to "find" the Unifi Controller running in Docker, In my opinion, a Synology NAS is one of the best appliances to run the Unifi Controller on, as its generally running 24/7 and can be updated/backed up relatively easily. for an explanation of some of those options. With VM running I am at: 4. Advertising:Certain offers on this page may promote our affiliates, which means WunderTech earns a commission of sale if you purchase products or services through some of our links provided. you MUST override the Inform Host IP -Go to the Image tab. -Select the Container page where you can see unifi running, If you have Firewall enabled, make sure certain ports are open. (with no "tag") 22. Id also like to add that for Timezones, docker containers does not pick up on the current time the Synology will run on. I have a DS1815+, it runs docker just fine. You can also set your data and logs directories to be I perform the following on the CLI. I would recommend to configure this setting. It's easy! Navigate to the IP address of your Synology NAS and port 8443 using HTTPS. Default: unset, JVM_EXTRA_OPTS I dont know about you, but I had to add port UDP/10001 also in the port settings in docker or the server couldnt discover any new Ubiquity device. 17. user with the uid/gid 999/999. Create a subfolder under the Docker folder named Unifi-Controller. RAM: ~15% Create a UDP allow rule for port 10001 and 3478. Give your controller a name (or restore from a backup if you have a backup), accept the terms of service and select Next. Default: 8080, UNIFI_HTTPS_PORT After the IP change I wanted to do the same and removed the independent devise first. The rc tag (for example, jacobalberty/unifi:rc) thanks. -It is recommended to not run this image as root. Click Create and under Ports select Custom and then click on Custom. are stored on the Docker host's local disk (~/unifi by default.) I have a VM running because always thinking if I would switch back to Docker (previously I used the image from Frederike with supervisor which was terminated long ago). Its important to understand that updates are periodically released, and you should check the containers release notes to see when youd like to update your container. This makes a few adjustments to try and improve performance: See the Unifi support site I tried the VMM way on my DS218+. 1. Overview Readers will learn how to view and configure firewall rules on the UDM and USG models. I have new Lite-6 APs. Maybe Ive just had bad luck because my cameras are a few years older. Default: unset, JVM_INIT_HEAP_SIZE RAM: ~50% (keep in mind that 3GB is automatically allocated whether HA is using all of it in the VM) NOTES & REQUIREMENTS: Applicable to the latest firmware on the UDM and USG models. Note: When you run as a non-root user, With this redirect I make sure that all my devices use my own DNS settings. Also, the L2 discovery option relies on UDP 1900 which is also used by Synology apps, so Im not sure whether its a good idea to have it enabled. Linuxserver team behind this image have done a great job with documentation, so probably there will be nothing unclear. NOTE: If you receive a 404 error, wait a little longer as the container might not be finished setting up. https://docker-host-address:8443 Please view our complete disclaimer at the bottom of this page for more information. Any suggestions ? After restarting the image it started working fine. I have a DS214+. Open a browser and enter https://:8443 to follow the steps to configure your Controller or restore a backup of an existing configuration. In this blog I will show how to setup Unifi Network Controller as a container in Docker on a Synology Nas. It is there to ensure UniFi has a place to write its PID files. It works as a unify controller on your Nas. We will not share your email with any third party companies. 7 min read, 19 Jul 2022 IMPORTANT: Since I can use the Chromecast between the LAN and IoT networks without any problems, I ended up not # Saves the logged in user id in the IDu variable, # Saves the logged in user group in the IDg variable, Unifi Security Gateway - Setup mandatory DNS redirect to Pi-hole, Unifi Network - Setup Chromecast between VLANs with mDNS repeater. Why bother? CPU usage of VMM + HA running (not configured yet, I can set the username right now) is by 5%. With Synologys Docker Application, updating a container is also very easy. I have observation that Syno CPU usage jump high when VM Manager GUI is running. Check if the container is running properly. In this example it is the data map we created, -e TZ=Europe/Amsterdam AFter creating select the folder and press Select, 9. The Unifi Controller is now set up! The unofficial Synology forum for NAS owners and enthusiasts. Thanks Dave, did you check if your dhcp is working correct? This container has been tested on Ubuntu, Debian, macOS, Windows, Click Create and under Ports select Custom and then click on Custom. As an Amazon associate, we earn from qualifying purchases.