Alanya , formerly Alaiye, is a beach resort city and a component district of Antalya Province in the Mediterranean Region of Turkey, 138 kilometres (86 mi) east of the city of Antalya.