Reputation: 1773
I'm running multiple instances of odoo on the same machine using docker, every instance is ran on a different port and binded to 0.0.0.0 let's say:
odoo_1 is bound to 0.0.0.0:8069
odoo_2 is bound to 0.0.0.0:8070
I want to map each of these instances to a subdomain using nginx. I found this article but it seems like he's talking about containers that are not bound to hosts (sorry I'm new to docker)
http://jasonwilder.com/blog/2014/03/25/automated-nginx-reverse-proxy-for-docker/
To make my need clear, I need a way to generate an nginx config file for every odoo instance running with docker, given the mapping of port -> domain/subdomain.
Any ideas?
Upvotes: 0
Views: 7202
Reputation: 46
Running Odoo container with Nginx proxy - multi tenant setup, fast and dirty but works well:
https://github.com/swoldanski/odoo-nginx-docker-multitenant
Upvotes: 3