Skip to content

parkgang/helloworld-docker-blue-green

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

helloworld-docker-blue-green

안녕하세요 무중단 배포 코드가 구현되어있는 repose입니다.

추가적으로 CI/CD를 위해서는 Docker in Docker를 이용해 CI/CD 구축하기 (with jenkins, slack) 내용을 참고해주세요.

http(port:80)으로 접속하기 위해서는 로드 밸런서를 활성화 시켜야합니다. 아래의 헤더를 참고해주세요.

Load Balancer restart

nginx.conf가 변경되어 로드 벨런서를 다시 시작하기 위해서는 host PC의 ./nginx 경로 에서 아래의 명령어를 실행하세요.

docker rm -f nginx-load-balancer || true
docker-compose -p load-balancer up -d --build