frappe / frappe_docker

Docker images for production and development setups of the Frappe framework and ERPNext
MIT License
1.45k stars 1.35k forks source link

Running in a server with already installed nginx #1489

Open iamshouvikmitra opened 2 weeks ago

iamshouvikmitra commented 2 weeks ago

Hi, I am trying to host frappe erpnext in a server which is already hosting a couple of other apps. I have nginx installed which occupies port 80 and 443, in turn proxies the traffic to apps running in the server at other ports.

While using the easy install script, I got the following error

Error response from daemon: driver failed programming external connectivity on endpoint frappe-proxy-1 (544c8dde843f40cb219f86d213433d41d464f4d0d24220c039fcf2e4508cbe60): Error starting userland proxy: listen tcp4 0.0.0.0:443: bind: address already in use
  Docker Compose failed, please check the container logs
 Command '['/usr/local/bin/docker', 'compose', '-p', 'frappe', '-f', '/home/xxx/frappe-compose.yml', 'up', '-d']' returned non-zero exit status 1. 

which makes complete sense. I wish to know if there is a way I can host frappe in the exisitng system and proxy the traffic from external nginx to frappe docker containers.

Thanks!

revant commented 1 week ago

You can adapt if you understand this, https://github.com/frappe/frappe_docker/blob/main/docs/single-compose-setup.md#adaptation

Try port based https://github.com/frappe/frappe_docker/blob/main/docs/port-based-multi-tenancy.md and then reverse proxy ports.