Node.js Server in Docker + Apache? Php & Mysql

Hi, im new using docker.

Currently i have installed docker and portainer.

My objetive is make something like this :

www/dev/ ( Apache ) -> port: 80 | -> dev . example . com
www/server/ ( Node.Js) -> port:3000 | node server -> server . example . com -> restricted to requests from localhost
www/management/ ( Apache ) -> port : 80 -> management . example . com -> restricted to some ip address’s
www/website/ ( Apache ) -> port : 80 example.com


portainer -> localhost:9000 ( Only available in localhost | restricted to localhost ) -> im using putty
mysql -> 3306

I need to make a mix with apache and nginx ?? and restrict the access to what i want using iptables/ufw??
Can someone give me some explanations and tell me what i need to do?

im a noob at this :frowning: