Foods that are high in sugar and acidity tend to keep me awake at night. The obvious culprit is sodas which are not only high in sugar and acid but have that added thing called caffeine.
Eating a bowl of ice cream late at night also keeps me watching reruns of Matlock until early morning.
Personally? I find high sugar, high carbohydrate foods tend to keep me awake or wake me up at night. If I have ice cream or pizza within a few hours of bed, I have a hard time sleeping. Its because your body uses the sugar and carbs for energy, even if you don't need it.
Caffine is only good for a short while. It might give some people a jolt in the morning to clear a foggy head but it's almost useless when it comes to staying aawke for a night shift. Concentrated sugar works best! Chocolate bar, gummies and especially Rockets will do.
Foods that have a low glycemic index will help you stay awake because they will release glucose into your system gradually, giving you energy to stay alert. Foods with caffeine in them can also help, for example coffee cake or coffee beverages.