This is a silly little experiment with Nginx Proxy Manager and localhost i thought i’d share. NOTE: Articulation is not a strong point of mine.
I create 2 domain records as seen image
I install Nginx Proxy Manager (npm) as follows,
services:
nginx_proxy_manager:
image: "jc21/nginx-proxy-manager:latest"
container_name: nginx_proxy_manager
restart: unless-stopped
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
- ./logs:/var/log/nginx
network_mode: 'host'
Note the network_mode: ‘host’ is must be to for npm and container to work properly.
I configured npm for SSL using cloudflare domain chalenage and a propagation time of 60. My domain is *.domain.tld.
I installed Home Assistant as follows,
services:
homeassistant:
image: ghcr.io/home-assistant/home-assistant
container_name: homeassistant
environment:
- TZ=America/New_York
cap_add:
- NET_ADMIN
- NET_RAW
volumes:
- ./config:/config
- /data:/data
- /var/run/docker.sock:/var/run/docker.sock
privileged: true
restart: unless-stopped
ports:
- '127.0.0.1:8123:8123'
This is how i configured npm to access the domain name.
-
I have VLC, Piper, and Cloudflare all setup using network_mode: ‘host’
-
EMQX is a little different, i set the UI to ‘127.0.0.1:18083:18083’.
I had ro set mqtt access to 172.24.1.3:1883:1883 for it to work properly.
A quick note on Cloudflare, I have zero trust install on my iphone. It allow me to access the domains from anywhere without creating a forwarder or redirect.

