Monocle docker on unraid [CLOSED]



  • Has anyone gotten this working on unraid? I could use some help.



  • does anyone even read these? lol



  • @dkbishop

    I have not tested running Monocle Gateway on UNRAID nor have we had any reports. So to our knowledge no-one thus far is running the Monocle Gateway on an UNRAID server. However, it can certainly run on Docker or on a dedicated VM as long as the networking details are sorted out.

    Let me know if you need help or have any questions if you are attempting to set it up.

    Thanks, Robert



  • I dont know how to install it on unraid is the issue. Everything else seems easy enough to set up as I have used it for ages in windows



  • @dkbishop

    Unfortunately I don’t have enough experience with UNRAID to help out. I did recently install UNRAID on an old test server to start playing with but I have not done much with it yet.

    I you are able to install a Ubuntu workstation or server VM on UNRAID, I think you could easily install Monocle Gateway into Ubuntu via the command terminal/shell. (The VM would need to obtain an IP address from your network router and be able to directly access your network.)

    Thanks, Robert



  • I dont want to run a VM solely to run monocle. Not worth it. I’ll look for an alternative to using monocle. Thanks anyway.



  • @dkbishop

    I understand … let us know if you find a reasonable alternative …

    Thanks, Robert



  • Thanks Robert,

    And you let me know if you decide to use Unraid and figure out how to install monocle on it. It really is pretty nice.



  • @dkbishop

    I suspect we will try to tackle this; however, probably not this month. I know UNRAID supports Docker as well, and I’m sure there is a way to make this work via Docker on UNRAID which would use less resources than a full VM instance.

    Thanks, Robert



  • Oh, without a doubt it could work in UnRaid! Best part is you could then have it added to community apps and people could find it easily within UnRaid. UnRaid mainly uses docker only, so you are indeed correct! Its really just a matter of adding the correct path and parameters. Here is what your docker looks like with no added input.

    Untitled.png



  • @dkbishop

    I’ll try to look a bit more at this next week and see if we can fumble thru it and at least get a manual set of instructions to try out.

    Thanks, Robert



  • @dkbishop did you get this working I was just about to try and set this up now and was looking see
    If some else had. I’ve got a few dockers setup so hopefully this should work.



  • Yeah, it was pretty easy to do. Here are my configs:

    Untitled.png

    And this you will need to correct to look like mine:

    Untitled.png

    You may need to create a monocle.properties file at the following location:
    /mnt/user/cache(or whatever you use here)/appdata/monocle
    monocle.properties:

    # ******************************************************************
    # *               MONOCLE GATEWAY CONFIGURATION FILE               *
    # ******************************************************************
    
    #--------------------------------------
    # RTSP SERVICE PROPERTIES
    #--------------------------------------
    `rtsp.host=192.168.1.50`
    `rtsp.port=8555`
    `rtsp.ssl.port=443`
    
    #--------------------------------------
    # RTSP PROXY PROPERTIES
    #--------------------------------------
    #rtsp.proxy.port=8554
    #rtsp.proxy.expire_minutes=10
    #rtsp.proxy.debug=false
    #rtsp.proxy.verbose=false
    #rtsp.proxy.log=false
    
    #--------------------------------------
    # RTSP SERVICE REGISTRATION OVERRIDES
    #--------------------------------------
    #rtsp.register.fqdn=
    `rtsp.register.host=192.168.1.50`
    `rtsp.register.port=443`
    
    #--------------------------------------
    # RTSP SSL CERTIFICATE & PRIVATE KEY
    #--------------------------------------
    #rtsp.ssl.cert=ssl-cert.pem
    #rtsp.ssl.key=ssl-key.pem
    

    Just uncomment the lines you need to use.

    You will also need to add another file called monocle.token. This is your API key from your monoclecam account. Just paste the API key into this file and you should be set after a restart of the container.

    Lastly, this is the icon i use as monocle doesnt have one currently for unraid. Just open advanced view in the docker config and paste the following in Icon URL (or host it yourself):
    https://images-na.ssl-images-amazon.com/images/I/41AK3vDKtmL.png

    Hope this helps!



  • @dkbishop life saver I’m guessing I change the 192.168 up address to we’re my cameras are on network. I have my api token I’ll give this a go.



  • @dkbishop You don’t by chance have traefik running as well do you I have this conflicting as both want to use port 443 and I can’t take traefik from 443



  • @dathomas85 you change that address to your NVR ip



  • @dkbishop 443 is non negotiable for amazon so you have to use that port. Just port forward and use something like 4433 to 443. That should work. If not, maybe someone else could help you with that.

    On a side note, traefik looks pretty cool, but is there a need for it if you already have a hardware router?



  • @dkbishop yea it’s the same for traefik I tried changing the port to 4433 and I lose connections to all my dockers remotely. I use traefik to access my running dockers through a sub domain on my domain name. May have to set up a small linux vm just to run monocle if I can’t find a solution thanks for the help.



  • @dathomas85 you change the external port to whatever you want (port 12345 for example) and keep the internal (container) port at 443. You may need to set monocle to bridge to get this to work…

    Unless i am misunderstanding you, you could just as easy use reverse proxy (letsencrypt/nginx for example) and not have this port conflict and access all your containers that way. Thats what I do.



  • @dkbishop yea I could probably setup reverse proxy with nginx I just transferred all my settings up from my Debian system that I had and traefik was what I used instead of reverse proxy as it was easier to use. I may try setting up monocle with a redirect on port 443 but I suspect that will cause a conflict as well. I’ve read there’s a few vulnerabilities with nginx on my plex servers groups I’m apart and can you use let’s encrypt or another certification mode can’t say I’ve looked into it much as I had a setup up and running without issues till I wanted to add my cameras to my Alexa ha.


Log in to reply