Handle ports for docker