I am running this on ubuntu 14.04 and have set docker0 to a static ip which is then routed to from the public ip through the firewall. I am trying to set up my
Recently I had the same problem and solved it using Network Containers:
From this point on the network container is available on the network and routes the ports to the service container. The main advantage is that the 'service' container does not have to know about the public IP, DHCP, etc. This way every running container can be made public on the network.
For convenience, I created a script that does all of this at once. Making a running container available on a public IP is as simple as:
create-network-container.sh webserver ens32
In this case you would need to have a running container called 'webserver', and a network interface on the host 'ens32'. The interface is needed in order to create the bridge into the network container.
The script, more detailed info and examples are available on: https://github.com/jeroenpeeters/docker-network-containers