Skip to content
Blue/Green deployment wih Docker compose, Nginx, Consul and Registrator
Shell Dockerfile Python HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app added wait-for-it.sh Oct 13, 2017
nginx updated the configuration Oct 12, 2017
.gitignore init Oct 12, 2017
LICENSE create LICENSE Nov 27, 2017
README.md init Oct 12, 2017
activate.sh update the activate script Oct 17, 2018
deploy.sh added the new version Oct 15, 2017
docker-compose-consul.yml added checking of reloading Oct 13, 2017
docker-compose.yml added the new version Oct 15, 2017
init.sh added `set -e` for all scripts Oct 15, 2017
reset.sh added `set -e` for all scripts Oct 15, 2017
rollback.sh
test.py added checking of reloading Oct 13, 2017

README.md

Blue/Green deployment wih Docker compose, Nginx, Consul and Registrator

  • Run docker network create consul to create a new network;
  • Run docker-compose -f docker-compose-consul.yml up -d to start Consul and Registrator;
  • Open in browser http://localhost:8500/ to check;
  • Run ./deploy.sh to first run;
  • Open in browser http://localhost/ to check;
  • Run ./deploy.sh to imitate deploying of a new app;
  • Open in browser http://localhost/ to check a new version;
  • Run ./rollback.sh to imitate a rollback;
  • Open in browser http://localhost/ to check an old version;
  • Use python2.7 test.py in a new terminal to be sure that an app is always online during a deploy/rollback.
You can’t perform that action at this time.