pducharme / UniFi-Video-Controller

Docker for Unifi-Video Controller (Ubiquiti Networks)
199 stars 105 forks source link

Feature Addition: External Mongo #183

Closed nmarus closed 4 years ago

nmarus commented 4 years ago

Great repo. Lots of good reference here. I was able to modify your setup to use an external Mongo container and thought I would share if you (or others) may be trying to do something similar.

The system.properties file will need these lines added to it and the docker-compose file can reference a mongo service that will then be used.

app.db.host=mongo
app.db.port=27017
db.external='true'
db.name=av
db.use_wiredtiger=true

Of note... the db.external value must be quoted as a string and not a boolean. I figured this out after a LOT of trial and error.

fryfrog commented 4 years ago

This would be a pretty decent wiki article, if you're up for it. Maybe w/ a little more detail? Gonna close the issue though. :)

nmarus commented 4 years ago

For now, here is a repo with the setup: https://github.com/nmarus/unifi-video-external-mongo