Second, the surroundings: analyse your immediate surroundings, and what/who is causing stress. Toxic friends, too much alcohol, etc.
Third: find a higher peace-bringing meaning. Wether it is a goal, or friendship/love, or even religion.
Also: work on redundancy of your mental health. Have your 3 pillars of strength in a healthy state: work, belonging (love/friendship), hobby. If 2/3 are good, then you have the strength to work on the third. Don't put all your eggs in one basket. 100% work-driven is not healthy, and actually counter-productive! Eg if works goes bad, then you have a crushing nothing going on for you. Then good luck improving your work situation while feeling crushed. Make your mental health resilient.
I also highly recommend you seek professional helpers: sport coach, psychologist, or just talking it out with friends regularly.
Another great helper is having habits. Take the habit of scheduling a meeting with a friend once a week. Take the habit of running on Sunday evenings. Habits can be the autopilot of your mental health.