Synology domoticz port and network problem in docker

You don’t need to use port 8080 from outside. You can port forward 23894 to domoticz 8080.
I would suggest you set up a reverse proxy using our let’s Encrypt container instead of opening up ports for all services you want to reach outside your LAN.