Demi Lovato isn't shying away from her past, sharing details of the relapse that led to her 2018 overdose and hospitalization.

During an appearance on "The Ellen DeGeneres Show" Wednesday, the singer, 27, recounted the night she decided to drink again, noting her struggles with an eating disorder played a big part. 

"I realized that over time as the things with the eating disorder were getting bad, over the years it progressively got worse... It led me to being really, really unhappy. My bulimia got really bad," she explained. "I asked for help and I didn't receive the help that I needed. So here I am, sober, and I'm thinking to myself, 'I'm six years sober but I'm miserable. I'm even more miserable than when I was drinking, why am I sober?' "

She then sent a message out to her team, she recounted, saying they responded with: "You're being very selfish, this would ruin things for not just you but for us as well."

Lovato said their reaction taped into her "core issues" of "abandonment from (her) birth father," who she described as an "addict and alcoholic."

"They totally played on that fear, and I felt completely abandoned so I drank," she said. "That night I went to a party and there was other stuff there and it was only three months before I ended up in the hospital with an (overdose)." 

In July 2018, Lovato was hospitalized for an overdose just a month after the singer admitted in her single "Sober" that she had relapsed. Lovato wrote two weeks later in a since-deleted Instagram post, "I want to thank God for keeping me alive and well. I have always been transparent about my journey with addiction. What I’ve learned is that this illness is not something that disappears or fades with time. It is something I must continue to overcome and have not done yet."

She encouraged others they can also overcome their challenges. 

"Ultimately, I made the decisions that got me to where I am today. It was my actions that put me in the position I'm in," she said on "Ellen." "I think it's important that I sit here on this stage and tell you at home or you in the audience or you right here that if you do go through this, you yourself can get through it... as long as you take the responsibility, you can move past it and learn to love yourself the way you deserve to be loved."

Lovato also teased her upcoming single (out Friday) titled "I Love Me," which she described as "fun and light-hearted" with an "upbeat message" about loving yourself.

She added that other songs on the album are less peppy, instead are "ugly honest and heavy and will make you cry." 

If you or someone you know is struggling with an eating disorder and are in need of support, please call the National Eating Disorders Helpline (800-931-2237) or text NEDA to 741741.