Closed lehuygiang28 closed 3 days ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
vphim-fe | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 14, 2024 11:48am |
vphim-mnt | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 14, 2024 11:48am |
The changes in this pull request involve modifications to Docker-related configurations, including the addition of a new branch trigger in the GitHub Actions workflow for building Docker images, the deletion of old configuration files, and the introduction of new ones for managing services with PM2. The Dockerfile and Docker Compose configurations have been updated to reflect these changes, including service restructuring and adjustments to environment file handling.
File Path | Change Summary |
---|---|
.github/workflows/build-push-docker.yml |
Added ci/tunnel branch trigger; modified .env file target path in the build job. |
containers/be-redis-cloudflared/ecosystem.config.js |
Deleted file; contained configuration for cloudflared , redis , and vphim-api . |
containers/be-redis-cloudflared/entrypoint.sh |
Deleted file; initialized Docker container environment for Redis. |
containers/be-redis-pm2/Dockerfile |
Updated file; simplified copy commands, removed cloudflared , added supervisor , changed entry point. |
containers/be-redis-pm2/ecosystem.config.js |
New file; configuration for managing vphim-api application with PM2. |
containers/be-redis-pm2/entrypoint.sh |
New file; initializes PM2 linking and starts supervisord . |
containers/be-redis-pm2/supervisord.conf |
New file; defines process management for redis and vphim-api . |
docker-compose.bundle.yml |
Updated service configurations; changed port for vphim_api_redis , removed vphim_api_redis_cloudflared , added vphim_api_redis_pm2 . |
api
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This pull request adds a bundle image to run the API with PM2, replacing the previous Cloudflared setup. The changes primarily affect Docker configurations, GitHub Actions workflow, and the introduction of PM2-specific files.
No diagrams generated as the changes look simple and do not need a visual representation.
Change | Details | Files |
---|---|---|
Replace Cloudflared with PM2 for API management |
|
docker-compose.bundle.yml |
Modify GitHub Actions workflow for Docker build and push |
|
.github/workflows/build-push-docker.yml |
Add PM2 configuration file |
|
containers/be-redis-pm2/ecosystem.config.js |
Add entrypoint script for PM2 setup |
|
containers/be-redis-pm2/entrypoint.sh |
Remove Cloudflared-specific files |
|
containers/be-redis-cloudflared/ecosystem.config.js containers/be-redis-cloudflared/entrypoint.sh |
Summary by Sourcery
Integrate PM2 for running the API in a clustered mode by adding a new PM2 configuration and entrypoint script. Update the CI workflow to streamline Docker image building and pushing processes, and replace the 'vphim_api_redis_cloudflared' service with 'vphim_api_redis_pm2' in the Docker setup.
Enhancements:
CI:
Deployment:
Summary by CodeRabbit
New Features
vphim_api_redis_pm2
for enhanced process management.vphim-api
application using PM2.Changes
vphim_api_redis
service.vphim_api_redis_cloudflared
service.Bug Fixes