Try ERPNext Buy Support Partners Foundation

Expose dockerized instance to LAN

Currently 80 port is available for localhost only. Ngingx’s container doesn’t allow using EXPOSE neither in .yml nor inside the container. Ufw doesn’t work either. How can I expose port 80 to LAN?


Not simple.
You’ll need to setup dns server.

Leaving a solution for a development instance. It exposes the instance to the Internet as well (if you open ports).

Make your DNS service listening to Docker

Open or create /etc/NetworkManager/dnsmasq.d/docker-bridge.conf:

Add the following line (your docker0 network):


Change DNS settings for Docker daemon

Create /etc/docker/daemon.json:

Add your network’s DNS server and fallback options (e.g. Google DNS):

    "dns": [ "", "", "" ]

Then restart the docker service:

sudo service docker restart