Closed Oilman-TX closed 8 months ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
If you read here, seems clear that you require an external mongodb container 🙂 https://github.com/linuxserver/docker-unifi-network-application#application-setup
If you read here, seems clear that you require an external mongodb container 🙂 https://github.com/linuxserver/docker-unifi-network-application#application-setup
could you please provide a valid docker-compose.yaml for setting up a mongodb container with the right version? thanks in advance!
put these 2 files in a folder (ex. Unifi).
Replace in both files "YOURPASSWD" with your own secure password.
filename : init-mongo.js
db.getSiblingDB("unifi").createUser({user: "unifi", pwd: "YOURPASSWD", roles: [{role: "readWrite", db: "unifi"}]});
db.getSiblingDB("unifi_stat").createUser({user: "unifi", pwd: "YOURPASSWD", roles: [{role: "readWrite", db: "unifi_stat"}]});
filename : docker-compose.yml
version: "2.1"
services:
unifi-db:
image : mongo:3.6
container_name: unifi-db
environment:
- PUID=1000
- PGID=1000
volumes:
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
- unifi_db:/data/db
- mongo_cnfdb:/data/configdb
ports:
- 27017:27017
restart: unless-stopped
unifi-network-application:
image: lscr.io/linuxserver/unifi-network-application:latest
container_name: unifi-network-application
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- MONGO_USER=unifi
- MONGO_PASS=YOURPASSWD
- MONGO_HOST=unifi-db
- MONGO_PORT=27017
- MONGO_DBNAME=unifi
- MEM_LIMIT=1024 #optional
- MEM_STARTUP=1024 #optional
volumes:
- unifi_app:/config
ports:
- 8443:8443
- 3478:3478/udp
- 10001:10001/udp
- 8080:8080
- 1900:1900/udp #optional
- 8843:8843 #optional
- 8880:8880 #optional
- 6789:6789 #optional
- 5514:5514/udp #optional
depends_on:
- unifi-db
restart: unless-stopped
volumes:
unifi_app:
name: "unifi_app"
unifi_db:
name: "unifi_db"
mongo_cnfdb:
name: "mongo_cnfdb"
Now from this folder run docker-compose -up (add -d if you want to daemonize).
Good luck.
Good luck.
Without going over it with a fine-toothed comb, I don't know what the difference is between your compose file and mine, but yours brought my Unifi Controller back from the dead!
Thanks a million!
OP did not follow the readme and did not reply after being told why they had an issue. Mongo provides examples for their container's compose and docker run already another user graciously provided a full compose for users who couldn't be bothered to take the example from mongo directly :)
closing this as not reproducible by those following the readme.
This is still an issue as I just worked through installing the new application on unRAID and noticed the same thing. This is specifically related to the unRAID template for this container. It's missing a value, but can be added after you install the container fairly easily.
Maintainers of the template will need to update this
Is there an existing issue for this?
Current Behavior
I am trying to migrate from Unifi Controller Docker to the Unifi Network application docker. My understanding is that the Controller docker will be deprecated in the near future.
I am running this on an Unraid server. The Unifi Controller docker has a WebUI that allows me to log in to the Unifi application. In the WebUI I was able to create a backup of my network setup and history. However, when I shut down the "controller" container, and start up the "Network Application" docker, the network application only gives me the option of a >_ Console.
Also, it isn't clear whether I need to install the MongoDB docker container or whether it is running in the background as part of the Unifi Network Application install.
Expected Behavior
I believe that after starting the docker container, a WebUI should show up for the Unifi Network Application. In that WebUI I should then be able to restore from the back-up made in the Controller.
Steps To Reproduce
1) Install the Network application docker.
2) it auto starts running the container 3) There is no WEBUI option.
Note that I have not deleted the old docker "Unifi Controller" yet and it has some of the same port assignments. However, I have that docker container stopped while I am trying to get the newer Network Application to install. Tower_UpdateContainer.pdf
Environment
CPU architecture
x86-64
Docker creation
Container logs