Fixed port when docker is start with --ip with an IP other than 0.0.0.0

If docker is started when --ip with an IP other than 0.0.0.0 (like --ip=127.0.0.1), the PORT contains something like 127.0.0.1:<port>, breaking the ngnix config.