Don’t know if there are any courses online, but from my experience so far as a client of Martin Reed’s all you need is a sleep log, sleep restriction (SR), stimulus control (SC) and techniques to help yourself relax. In the sleep log you basically record when you went to bed, when you got up, how many hours of sleep did you get, how many times did you get up, the total sum of the time up, how much caffeine and alcohol you consumed, and at what times. SR and SC are explained on this website. You start with SR and then add SC. In determining your sleep window for SR, make sure you average over a week the number of hours you are actually sleeping. So for example, if you’re sleeping one night 8 hours, but another night only 4 the average is 6. Don’t make your sleep window your “ideal” length of sleep, say, 8 hours, or it won’t be effective. You may be tired a lot, but you will overcome your insomnia sooner.
This is not easy work to do alone however. So if you can find a coach like Martin or a CBT-I therapist to help you, that is best. Otherwise you can always come here to the forum for support (and a place to vent when it gets rough – it will!)
There also is a book that explains in detail how to do this – End the Insomnia Struggle by Colleen Ehrnstrom. She says you can do either SC or SR. I wouldn’t recommend that. Do SR with SC together and you’ll get better results. Good luck!