I’m currently trying to have multiple docker container installed with erpnext on the same server, I’ve read quit a few post, but none of them seeems to be working. The docker-compose branch from ianneub doesnt work either.
Any ideas on how should i implement this with erpnext on different port through nginx or different domains ?
Thanks for your advice, but i already have a docker erp container runs on ubuntu. What im trying to do it having multiple container run in one server at the sme time. I believe i have to use some sort of reverse proxy and change the config file for nginx.
I think this proxy is better for what you want: https://github.com/jwilder/nginx-proxy
With this you don’t need to publish the exposed ports. Reverse proxy is based on subdomain and you add 2 virtual env : VIRTUAL_HOST and VIRTUAL_PORT and you can let nginx run on port 80 for all your instances
Basically you access your instances using wildcard subdomains, for example erpnext1.local, erpnext2.local, … erpnextN.local.
You will need to launch N erpnext instances, all exposing port 80 but don’t publish it, this will be the proxy’s job.
Each instance should have and ENV variable - VIRTUAL_HOST=erpnextN.local
Of course you need to point you subdomain to your server IP.
But can’t you just use multisite feature to do the same?