Change mongodb IP Unifi Network Application

I’m using unifi network application docker image with MongoDB

The setup works like a charm - unfortunately I used a spcific IP adress with the MONGO_HOST environment variable. For reasons I need to change the IP - but the docu says “Only evaluated on first run”. I tried changing the parameter - I also tried to change the system.properties. But I had no luck changing the IP to a hostname/different IP.

I also tried to switch to docker compose - but samesame.

Is there any way to fix this?

Had the same issue, but can simply be fixed

First stop the Unifi container

Go to the Unifi Appdata folder of the container.

Then in de Data folder there’s a file called “system.properties” there two entries with the mongoDB IP adress,

Change it to the new adress.

Start the container and give it some time to bootup