PoC: Blue-green deployment wih Docker Compose, Nginx, Consul and Registrator
Last updated Dec 26, 2024
91
Stars
31
Forks
0
Issues
0
Stars/day
Attention Score
27
Topics
Language breakdown
Shell 88.8%
Dockerfile 8.2%
Python 2.7%
HTML 0.3%
▸ Files
click to expand
README
PoC: Blue-green deployment wih Docker Compose, Nginx, Consul and Registrator
- Run
docker network create consulto create a new network; - Run
docker-compose -f docker-compose-consul.yml up -dto start Consul and Registrator; - Open in browser
http://localhost:8500/to check; - Run
./deploy.shto first run; - Open in browser
http://localhost/to check; - Run
./deploy.shto imitate deploying of a new app; - Open in browser
http://localhost/to check a new version; - Run
./rollback.shto imitate a rollback; - Open in browser
http://localhost/to check an old version; - Use
python2.7 test.pyin a new terminal to be sure that an app is always online during a deploy/rollback.
🔗 More in this category