Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sinkler/docker-nginx-blue-green
PoC: Blue-green deployment wih Docker Compose, Nginx, Consul and Registrator
https://github.com/sinkler/docker-nginx-blue-green
bluegreen consul consul-template deployment docker docker-compose nginx poc registrator rollback
Last synced: about 1 month ago
JSON representation
PoC: Blue-green deployment wih Docker Compose, Nginx, Consul and Registrator
- Host: GitHub
- URL: https://github.com/sinkler/docker-nginx-blue-green
- Owner: Sinkler
- License: mit
- Created: 2017-10-12T16:37:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-29T12:18:39.000Z (over 5 years ago)
- Last Synced: 2024-12-30T01:42:02.363Z (about 1 month ago)
- Topics: bluegreen, consul, consul-template, deployment, docker, docker-compose, nginx, poc, registrator, rollback
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 91
- Watchers: 5
- Forks: 32
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PoC: 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 read more about this technique here:
https://medium.com/rate-engineering/using-docker-containers-to-run-a-distributed-application-locally-eeabd360bca3