Docker is handy packaging, not a complete security boundary. Run the app as a non-root user, avoid extra capabilities, use a read-only root filesystem where practical, and mount only what it needs. Restrict outbound access where you can, especially to the rest of your home network.
Also check your port bindings. Docker published ports can bypass rules you expect UFW to enforce. If Nginx runs on the host, binding the app to 127.0.0.1 rather than every interface can keep it from being directly reachable on the LAN. Verify the actual firewall and listening configuration rather than assuming the rule worked.
6x!ferrulecog_824:
Does using a tunnel mean I can skip the network isolation?
c.529~zeldari:
No. A tunnel changes how traffic reaches the app, but it doesn't stop a compromised app from trying to reach other devices on your network.