Thanks Aliaksandr and Michael for your support! To get it working, I need to change all references to localhost to specific IP address in files /opt/tomcat/conf/server.xml and /etc/httpd/conf.d/https_gluu.conf. I also need to change the port for AJP protocol in /opt/tomcat/conf/server.xml.
In Gluu server container, for etc/hosts file, I am not sure if we can change localhost entry to point to virtual ethernet interface's ip address. I think it is not a standard way but it could have resolved the localhost issue.