Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto lb by docker compose #1

Merged
merged 5 commits into from
Feb 20, 2024
Merged

auto lb by docker compose #1

merged 5 commits into from
Feb 20, 2024

Conversation

jsmin6330
Copy link
Owner

No description provided.

@jsmin6330
Copy link
Owner Author

jsmin6330 commented Feb 19, 2024

블로그는 아래와 같이 도커 허브에 배포(참고용)

sudo docker build -t gitblog .
sudo docker tag gitblog soominjeong/gitblog:0.1.0
sudo docker push soominjeong/gitblog:0.1.0

compose

sudo docker pull nginxproxy/nginx-proxy

sudo docker compose -f compose/autolb/compose.yml up -d --build --force-recreate
# sudo docker compose -f compose/autolb/compose.yml ls
sudo docker compose -f compose/autolb/compose.yml  up -d --scale blog=5
# sudo docker compose -f compose/autolb/compose.yml ps
sudo docker compose -f compose/autolb/compose.yml  up -d --build --force-recreate

@jsmin6330
Copy link
Owner Author

jsmin6330 commented Feb 19, 2024

chrome 브라우저에서 http://aws.google.com:9889/
확인 위해 window hosts 파일 수정 필요(관리자권한으로 수정)
호스트 파일 경로: C:\Windows\System32\drivers\etc

@raheego
Copy link

raheego commented Feb 19, 2024

LGTM

@parc02
Copy link

parc02 commented Feb 19, 2024

LGTM

@jsmin6330 jsmin6330 merged commit f9dfce0 into main Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants