I'm trying to create a website using SvelteKit and reached a point where I need to add a CMS. I decided to opt for PayloadCMS, but that isn't really relevant. Currently my project is contained in a single git repo where I have a Dockerfile which builds both a production and development version of my app.
Then I have a compose.dev.yml file that runs the development version locally and Google Cloud Build configurations to build and run my application on Cloud Run. Preferably I'd like to avoid having a monorepo, as that would add some complexity to the Google Cloud side of things, so I'd like to know if there is a good way to add another repo for PayloadCMS add a Dockerfile in it and also have a way to start the development compose file for both projects in one place.
I looked at using a third repo with git submodules, but that seems to add more problems than it solves.
Edit: Seems like I didn't really ask a clear question. What I'm asking is if there is a way to have two or more repositories, that are deployed using a single docker-compose file, that is version-controlled somewhere. I think git submodules can be used, but everywhere I read how it's a bad solution. What other options do I have and what would be considered "best practice"?