A very good resource that delves deeper into this is The Science of Well-Being course on Coursera (https://www.coursera.org/learn/the-science-of-well-being) by Laurie Santos, a cognitive scientist and professor of psychology at Yale University. Highly recommended.