Closed Fredkiss3 closed 10 months ago
Using pm2 is not enough and can instead cause moments where the app is down because it reuses the same codebase.
pm2
Move our deployment pipeline to docker and docker swarm and see between nginx & docker swarn which should be our load balancer.
ex code : https://github.com/cecchisandrone/docker-swarm-blue-green
Blue green with docker : https://www.codementor.io/@goetas/traps-on-the-way-of-blue-green-deployments-with-docker-vxmydcy3s
How to properly deploy next on docker : https://create.t3.gg/en/deployment/docker
https://botleg.com/stories/blue-green-deployment-with-docker/
https://www.straypaper.com/blue-green/
https://community.traefik.io/t/zero-downtime-deployments-with-docker-swarm-whats-the-proper-way/10965
https://botleg.com/stories/load-balancing-with-docker-swarm/
https://github.com/rodolpheche/bluegreen-traefik-docker/blob/master/readme.md
See this example for custom cache handler with REDIS : https://github.com/vercel/next.js/tree/canary/examples/cache-handler-redis
[x] Are you willing to make a PR for this ?
What is the reason to do this refactor ?.
Using
pm2
is not enough and can instead cause moments where the app is down because it reuses the same codebase.Describe the work that needs to be done
Move our deployment pipeline to docker and docker swarm and see between nginx & docker swarn which should be our load balancer.
Additional context
ex code : https://github.com/cecchisandrone/docker-swarm-blue-green
Blue green with docker : https://www.codementor.io/@goetas/traps-on-the-way-of-blue-green-deployments-with-docker-vxmydcy3s
How to properly deploy next on docker : https://create.t3.gg/en/deployment/docker
https://botleg.com/stories/blue-green-deployment-with-docker/
https://www.straypaper.com/blue-green/
https://community.traefik.io/t/zero-downtime-deployments-with-docker-swarm-whats-the-proper-way/10965
https://botleg.com/stories/load-balancing-with-docker-swarm/
https://www.straypaper.com/blue-green/
https://github.com/rodolpheche/bluegreen-traefik-docker/blob/master/readme.md
See this example for custom cache handler with REDIS : https://github.com/vercel/next.js/tree/canary/examples/cache-handler-redis
[x] Are you willing to make a PR for this ?