I totally use exercise to keep on top of slightly wobbly mental health.
I heard the practice referred to recently as "Outrunning the darkness", which is glib but kinda describes why I am typically either at work, caring for my kids, or out on a bike.
That said, I very much sympathise be all the accounts by people for whom days are made palatable, and exercise is made possible, by taking prescription medication.