-
Notifications
You must be signed in to change notification settings - Fork 265
Deployment Process
-
Configure DNS Records:
- We set up DNS records for
deployment.nextjs.boilerplate.hng.tech
,staging.nextjs.boilerplate.hng.tech
, andnextjs.boilerplate.hng.tech
to point to your server.
- We set up DNS records for
- Development Environment: Accessible at Development
- Staging Environment: Accessible at Staging
- Production Environment: Accessible at Production
The team planned for 99% uptime by utilizing a docker-compose file to spin up two containers for both the development and production environment. Except for the Staging environment, the docker-compose builds one container. During each build, a change pushed to the main branch does not take down the server but keeps the previous running container active until the build completes. The old container is then detached, and the newly created one is used.
NGINX is used for both load balancing and reverse proxying, ensuring that no single container becomes overwhelmed and that requests are efficiently routed to the appropriate containers. This setup helps maintain high availability and performance for the deployed projects.
Made with ❤️ by Ravencodes | AugustHottie | CodeReaper0 | bySegunMoses | Suesue | DrInTech22 courtesy of @HNG-Internship