open-contracting / deploy

Deployment configuration and scripts
https://ocdsdeploy.readthedocs.io/en/latest/
Apache License 2.0
2 stars 3 forks source link

Docker: Explore option for zero-downtime deployment #528

Open jpmckinney opened 1 month ago

jpmckinney commented 1 month ago

e.g. blue-green deployment

This can be done with elaborate systems like Kubernetes or Rancher, but it's also possible to do it by simply scaling new/old versions of containers up/down (see links below).

Preference is to do it via scaling.

I think we would have to change how we do networking for Docker containers. Right now we assign individual ports to containers.

In the blog posts, https://github.com/nginx-proxy/nginx-proxy or Traefik (which has Docker support) are used, to (as I understand) autodiscover the ports instead.

Similar:

jpmckinney commented 23 hours ago

There's also dokku and https://kamal-deploy.org but I think a simple configuration as above might be better.