On restsql.org, we have nginx in front of the service+sdk. The nginx container is on the bridge network, at 172.17.0.4. It forwards request to the restsql container at 172.17.0.3. All tomcat access logs and restsql service logs are showing 172.17.0.4 as the client request IP, rather than the real requester IP.
Looks like there is an easy solution for tomcat: http://serverfault.com/questions/514551/make-tomcat-use-x-real-ip/692604. nginx proxy location block needs an update with a couple headers.
restsql's org.restsql.service.HttpRequestHelper needs to change to look at the X-Real-IP and/or X-Forwarded-For header.