Letsencrpyt docker reverse proxy for Odoo (non standard app running on port 8069)

  • I run a constellation based on the tutorial from TDF with nextcloud, letsencrypt and supplementary I run a odoo 10.0 docker plus a postgres one (required by odoo). Details about the Odoo docker are here: https://hub.docker.com/_/odoo


    Basically odoo is running and is available on http://myserver:8069 (also externally from http://mydomain.com:8069) and I would like to reverse proxy to it. For this I will use a https://sub.mydomain.com that is already pointing to my Letsencrpt docker.


    Could somebody help me write a odoo.subdomain.conf for my reverse proxy?


    I am not a nginx guy, while I started 20+ years ago with apache and stick with it while it lasted. I will put some efforts into documentation this weekend to see if I eventually could get it through.


    what is worth mentioning is that I did not manage to add these 2 dockers (odoo and postgres) in the same network as the other ones (letsencrypt, nextcloud, etc)...


    Thanks a bunch!

  • why did it not work out to connect the Dockers in a network? This would be the easiest solution. Have you tried it via the network tab of the docker gui?


    An example .conf would look like this(after joining odoo and letsencrypt in a network):


    This goes into the proxy-confs folder. And a restart of the letsencrypt container is needed afterwards.

  • this generally is not working when the 2 dockers are not in the same network... the reference through docker name I mean...


    in the meanwhile I also done some research: I am considering to use the upstream {} directive to define the point to odoo...



    I will make some try outs and let you know...

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!