Working the night shift keeps you up all night. So, to keep your body fit even if you don't sleep at night, you have to sleep enough during the day or evening, which is around 8 hours.
No need to sleep straight away; you can split this sleeping time twice so that the body feels fresher.
Now that's a powerful way to stay focused and fit when working at night. Good luck. (*)