Demi Lovato's documentary, Demi Lovato: Simply Complicated, out Tuesday on YouTube, is a serious look at her rise to fame — and the complications that almost ended it all.

The film explores some of the singer's darkest times, including her drug addiction (which ranged from pills to cocaine), eating disorder and even a time she punched one of her back-up dancers.

"I wasn't ready to get sober. I was sneaking it on planes, sneaking it in bathrooms, sneaking it throughout the night — nobody knew," she says in the film. "I went on like a bender of like two months where I was using daily."

Heartbreak is also discussed.

“I never loved anybody like I loved Wilmer,” she says, referencing her former boyfriend of six years, actor Wilmer Valderrama.

Lovato revealed that they didn't break up due to falling out of love, but that they mutually decided they were better as friends.

Although the 25-year-old is proud of her current handle on drugs and alcohol, she says she still hasn't "conquered" her eating disorder — adding that she relapsed with binging and purging while "missing Wilmer."

“Food is still the biggest challenge in my life,” she reveals, saying it’s something she “constantly” thinks about.

Lovato also touches on her sexuality, a highly-anticipated topic of the documentary.

"I am on a dating app with both guys and girls," she says, without using any specific labels. "I am open to human connection, so whether that's through a male or a female, it doesn't matter to me."

The documentary includes interviews with Lovato's manager Phil McIntyre, her mother and appearances from Nick and Joe Jonas.

Although some of Lovato's hardest times are revealed, the film is a story of success.

"It's embarrassing to look back at the person that I was," Lovato says.

The star is now over five years sober with a new album Tell Me You Love Me. Behind-the-scenes of her recording the album also act as musical transitions during the documentary.

Check out the full documentary in the video above.