I’ve not installed ERPNext inside docker on a vm to be accessed from LAN.
General points to consider.
- Only Dns multi tenancy is available in docker.
- Site names resolve to sites created, ip won’t serve sites
- if it’s single machine trying to resolve site, edit /etc/hosts file for that machine.
- if machines from lan want to access the site, setup local DNS server, map the ip with custom domain and use that dns server from all machines trying to access ERPNext site.
I’ve not done this myself, so can’t know what can go wrong.