The ideal lifestyle is very individual. Do what makes you feel the best and most able to handle the level of training you are interested in achieving.
For sleep, you don't necessarily want to get 8 hours. Sleep tends to be in 45/90 minute cycles. The reason people use 8 hours is likely that they get 7.5 hours of actual sleep with some time to fall asleep and 10-15 minutes where they're almost awake in the morning, assuming they're regular with their sleep. If you can, get 9 hours if you're training hard, so more like 9.25 hours in bed if you need 15 minutes to fall asleep. Or add a nap in the early afternoon. Or both. Be consistent with your bedtime and wake-up time and you should be able to wake up without an alarm. And you'll wake up feeling more rested than if you were to wake up to an alarm.
You can drink a bit. The occasional beer or two makes minimal impact on you, and probably nothing noticeable if you actually look into it. Drinking to excess is stupid regardless of training. Whether people like it or not, drinking excessively within a few hours of sleeping will impact the quality of rest you get. Drinking more than one or two will certainly impact your training because it will impact your sleep, your recovery, your nutrient intake, and your hydration.
Journal what you eat if it helps you keep track of what makes you feel good, bad, recovered, sluggish, etc. Or if you feel like you're eating too much, or not enough. Otherwise, there's probably not much of a reason to do it.
All of the things like partying, going out with friends, staying up all night - basically, the "student life" - that people claim and will continue to claim that you're going to miss out on are not things that everyone cares about. If I could do it over again I would not participate in any of that. I regret almost every minute of it. None of it was worth my time and I am happier now that I no longer do anything like that. Most of my friends are the same way. But some people who didn't do any of that stuff, or only did it a bit, wish they had done more of it. It's really up to you and what you want.