Can you access the frontend ok on your lan? Did you setup home assistant container to use host networking mode?
For security reasons I generally would not recommend port forwarding 8123 for Home Assistant, and absolutely not for portainer, since portainer has access to your docker sock. Portainer is like your “crown jewels” of your system and anyone that gets access to it has full control of your system.
I run home assistant behind a reverse proxy following this guide
And portainer is accessible on my system only through the wireguard VPN. I wrote a guide to setup wireguard as a docker container here.