We’ve already covered this in another topic:
We also have extensive documentation on how to use Gatsby with Ghost: