Is "Vostok 1 orbited the Earth for 108 minutes and made its reentry over the Soviet Union, with Gagarin ejecting from the spacecraft at 7,000 meters (23,000 ft), and landing by parachute." a good answer to the question "How long did Yuri Gagarin orbit the earth in the spacecraft?"
yes