A Hamilton strip joint fire that engulfed surrounding buildings including a medical centre has been extinguished.