In the past I’ve struggled with sleep sometimes too..
On the whole alcohol doesn’t seem to help me, sometimes helps me get off to sleep but the quality is reduced and I still get early morning waking..
I like coffee but only drink it on a morning now, then weak green tea early afternoon. Nothing with caffeine after 1400-1500 ish. Calmomile tea is pretty good and sometimes have one in an evening…
I try wind down on an evening for at least an hour before bed, no internet or watching exciting stuff, shopping for bikes, thinking about work etc. The wavelength of light emitted by tablets and phones is supposed to be similar to daylight. Melatonin is released in the absence of daylight entering the eye
Coolish bedroom that is DARK
Clean bedding
Some evidence that a cold shower helps (possibly warm too) as the body cools it helps melatonin release
Try sticking to same bed time and waking time, along with a dark room this helps melatonin release..
A calm relaxed mind: Brain dump (try sort stuff out during the day / eve so you go to bed with a calm mind).
Meditation is good too (try headspace.com or the app)
I have had some success with 5-htp in the past, also Nytol or similar in the periods where I am really strugglng. Take them early (like 2000-2100) on an emptyish stomach. When you start to feel drowsy, do the above, and get yourself in bed. They can make you feel groggy the next day, especially if you take the full 50mg dose though…(i.e. nytol 50mg)
When you are in bed, try thinking about your breathing rather than thinking about sleeping. Just enjoy the process of being in bed and feeling relaxed… if you think about not being asleep it definately worsens the situation.
I manage a lot better now. Don’t use 5-htp or nytol and it has been a slow change in lifestyle with some of the above that has helped.
Good luck