I have a Ubuntu VM on Azure with 2 NICs and public IPs + NSG with the correct Port and docker-compose config. I assigned the Port config so for example my management containers are available on one IP (the backend) and the other container on the other IP (Frontend).
For example the wordpress container should be publicly available and has the config:
and my backend service have:
These private 10.1.x IPs are pointing to the correct public IPs set up and the Ports are allowed in the NSG.
The backend containers are available as expected, but I cannot reach the Frontend containers. I think the problem is that it ignores the IP assignment in the ports section of my compose file.
- Create Ubuntu VM
- Add 2 NICs with public ip
- create 2 services with docker-compose
- set up the port config for the service to one public ip and the second container to the other public ip
- only one (probably the main IP) is availbale from outside