Rinse and pat dry cod and season both sides with the 1 teaspoon salt and 1/4 teaspoon pepper. Thinly slice the lemon and layer slices between fish fillets. Cover and refrigerate while you make the ratatouille.
Cut tomatoes in half horizontally and gently squeeze to remove seeds. Coarsely chop tomatoes and set aside.
Heat 4 tablespoons oil in a large frying pan over medium heat. Once shimmering, add eggplant and season with 1 teaspoon salt and 1/4 teaspoon pepper. Cook, stirring frequently, until eggplant has reduced to half its size and become succulent and tender, about 10 minutes, then remove from skillet.
Return pan to medium-high heat. Add remaining 2 tablespoons of oil to the pan, once hot add onions and season with 1 teaspoon salt and 1/4 teaspoon pepper. Cook until starting to brown then add garlic and bell pepper. Continue cooking until pepper starts to soften, then add zucchini and season again with 1 teaspoon salt and 1/4 teaspoon pepper.
Once zucchini is starting to brown, add tomatoes, eggplant, rosemary, and bay leaf and lower heat to low. Simmer until all vegetables are tender and stewed, about 30 minutes, stirring frequently and scraping the bottom of the pan to get any browned bits off the bottom. Stir in parsley.
While vegetables are cooking, make the lemon-butter sauce. Combine the 8 tablespoons butter, 1 tablespoon lemon juice, 1 1/2 teaspoons lemon zest, 2 teaspoons chopped rosemary, 1/4 teaspoon salt, and 1/8 teaspoon black pepper in a small skillet or saucepan over medium heat. Whisk until smooth. Taste and add more salt or lemon juice if needed. Keep warm.
To cook the cod, heat the 3 tablespoons oil in a large frying pan over medium-high heat. Once shimmering, remove the lemon slices and add the fish fillets to the hot oil. Cook, without disturbing, until browned on one side, about 2 minutes. Flip and cook until fish easily flakes when pressed with a finger. You may need to do this in batches, depending on the size of your skillet.
Taste ratatouille and add more salt and pepper if necessary.
Spoon ratatouille onto plates, place a piece of fish on top of the ratatouille and drizzle the butter sauce over everything, garnish with more chopped parsley, and serve with crusty bread on the side.