I am trying to create a Stack that uses an external network created in Portainer. Everything is working fine, except the port mapping to the static IP address. Essentially, those ports are not accessible.
You have to decide whether you want to set a static IP for a container or forward a port from the host. You just set the container IP and wanted to forward a port from the container IP to the container IP. That doesn’t make sense does it? It is also important to know how the external network was created. Is it really in a subnet in which the chosen IP is valid?
You also used expose instead of “ports”. I recommend reading the documentation.
Sorry the expose tag was set from testing the config. I hope I understand this correctly, you can’t set a static ip and open a port for this one with an external IP address? The ip is matching the subnet.