ci: update CI workflow and docker-compose for microservices build targets - #32
Conversation
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR refactors the Docker build strategy from monolithic backend/worker images to separate production images for each transit service. Docker Compose and the CI/CD pipeline are updated to build and deploy agencies, routes, stops, alerts, vehicles, and ingestion as independent containerized services, with the frontend reconfigured to communicate via nginx instead of a direct backend service connection. ChangesMicroservices Docker Build Refactor
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Updates the CI pipeline and
docker-compose.ymlto align with the microservices split.CI Changes (
ci.yml)backendandworkerbuild steps with individual build-and-push steps for each microservice: agencies, routes, stops, alerts, vehicles, ingestionfrontendbuild arg:BACKEND_URLnow points tohttp://nginx:80instead of the old monolithhttp://backend:3000docker-compose Changes
target: productionto all service build configs to ensure the correct Docker stage is used in production buildsSummary by CodeRabbit