mikhail-angelov / zero-downtime-deployment

Zero downtime deployment scripts for docker compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zero downtime deployment with docker compose and nginx reverse proxy

The purpose of this repo is to demonstrate blue-green deployment for simple application which is run under docker compose.

Make commands

make build - will build docker image with small ech application and tag it with version

if you manage to run docker compose docker compose up

make deploy-blue version=<your ver> - will gracefully shut down blue container, remove it, create new blue container with target version, run it and restore load balancer to route traffic to new container

make deploy-green version=<your ver> - same for green

make blue-down - will gracefully shut down traffic for blue container make blue-up - will restore traffic for blue container

About

Zero downtime deployment scripts for docker compose

License:MIT License


Languages

Language:Makefile 61.8%Language:JavaScript 30.8%Language:Dockerfile 7.4%