18 month old ruining my life with sleeping at night

She will only sleep on me. I literally have to hold her for 4 hours before she will even think about sleeping in crib. She then wakes up in 2-3 hrs and comes in my bed.

I have no idea what to do, but this is not sustainable.