Working on a YouTube video.
Introduction: With the upcoming deprecation of the old UniFi Controller in 2024, it’s essential to transition to the newer version of the UniFi Network Application. This post guides you through the process using Docker and Portainer, ensuring a smooth upgrade.
- Docker installed on your system
- Basic knowledge of Docker and Docker Compose
- Access to Portainer UI
You will need to backup the old unifi controller and restore in the new one.
init-mongo.js: Start by running the script to create the MongoDB user for UniFi. Open your terminal and execute:
bash -c "$(wget -qLO - https://raw.githubusercontent.com/bigbeartechworld/big-bear-scripts/master/generate-unifi-network-application-init-mongo/run.sh)"
Follow the prompts provided by the script.
Prepare Docker Compose: Download the Docker Compose file from this GitHub repository. This file defines the UniFi Controller and MongoDB services.
Deploy on Portainer:
- Go to Stacks > Add Stack in Portainer.
- Name your stack (e.g.,
- Paste the Docker Compose content into the Editor.
- Click on “Deploy the stack” to start the services.
- Deploying the UniFi stack on Portainer
- Initial Configuration: Once the stack is deployed, you might need to restart the UniFi container for it to connect successfully to MongoDB. After a few minutes, access the UniFi setup wizard at
https://[YOUR_PORTAINER_IP]:8443and follow the on-screen instructions to complete the setup.
Conclusion: You’ve now successfully set up the new UniFi Network Application on Docker using Portainer.