partner troubles

My partner hates me talking to any friends and if I make plans to go out he always tries to have a go at me to the point that I end up cancelling, I haven't met up with friends in about 3 months now, every time he sees me online on Facebook he'll send me a message saying 'what are you doing on here?' He has really bad depression and anxiety and is currently going through all the doctor/hospital things for help so I feel bad for even ranting about it, he says he's always worried I'll call or text someone else, I've put up with this for a while now and we're engaged and have a child together, I don't know what to do anymore , I had to delete my Instagram and snapchat too because he was worried, I don't know what to do because I don't want to leave him