Update template.tpl

Add auto correction for the Docker NAT port.