How to install and configure a Unifi controller container on RHEL 8 - nomorespice/rhel8-howto GitHub Wiki

The Unifi-controller software is a powerful, enterprise wireless software engine ideal for high-density client deployments requiring low latency and high uptime performance. This procedure will guide you through the installation and configuration on a Red Hat Enterprise Linux 8 server.

This document assumes that:

  • you installed the RHEL 8 x64 Operating System according to How to install RHEL 8 via kickstart
  • you are performing these tasks as root
  • you are performing these tasks in order, as some tasks require others to be completed first

Install required software

/usr/bin/dnf install -y @container-tools

Setup the unifi controller container in podman

/usr/bin/podman volume create unifi_controller
/usr/bin/podman pull lscr.io/linuxserver/unifi-controller

Create and start the unifi controller service

Be sure to replace TIMEZONE for your environment

/bin/cat <<\EOT >/usr/lib/systemd/system/unifi-controller.service
[Unit]
Description=Unifi Controller Container
After=nftables.service

[Service]
ExecStart=/usr/bin/podman run --name=unifi-controller -e TZ=TIMEZONE -e MEM_LIMIT=1024 -e MEM_STARTUP=1024 -v unifi_controller:/config:Z -p 3478:3478/udp -p 10001:10001/udp -p 8080:8080 -p 8443:8443 linuxserver/unifi-controller
ExecStop=/usr/bin/podman stop -t 2 unifi-controller
ExecStopPost=/usr/bin/podman rm unifi-controller
Type=idle

[Install]
WantedBy=multi-user.target
EOT

/usr/bin/systemctl enable --now unifi-controller.service
⚠️ **GitHub.com Fallback** ⚠️