I'm currently struggling with the deployment of my services and I wanted to ask, what's the proper way when you have to deal with multiple repositories. The repositories are independent, but to run in production, everything needs to be launched.
My Setup:
- Git Repository Backend:
- Backend Project Rails
- docker-compose: backend(expose 3000), db and redis
- Git Repository Frontend
- Express.js server
- docker-compose: (expose 4200)
Both can be run independently and test can be executed by CI
- Git Repository Nginx for Production
- Needs to connect to the other two services (same docker network)
- forwards requests to the right service
I have already tried to include the two services as submodules into the Nginx repository and use the docker-compose of the nginx repo, but I'm not really happy with it.