Both the Ocean Lodge Hotel (where Billy lives) and the Chez Jay bar (where Billy drinks) are real places in Santa Monica, California. The interior of Chez Jay, however, was too small to accommodate a cast and camera crew, so an expanded version was replicated on a studio soundstage. Chez Jay was only used for the exteriors.
Season 1 showrunner David E. Kelley chose to feature the Santa Monica 'Chez Jay' bar because that's where he first met his wife, Michelle Pfeiffer.
Billy Bob Thornton liked including the late John Ritter in his films (Sling Blade, Bad Santa) and now John Ritter's son Jason appears in Goliath.
After the first episode of season 2 was shot and the whole season had been written, showrunner Clyde Phillips exited the show because Billy Bob Thornton was unhappy with the new creative direction. Amazon then had to stop production for a while to let the new creative team write another story and the episode count went down from 10 to 8.
The general "Big Pharma" theme of Season 4 is clearly inspired by Purdue Pharma and the Sackler family's legal battles over the epidemic of opioid overdose deaths caused by their painkiller drug Oxycontin.