해당 레포지토리는 step-by-step guide on how to set up nginx and Let’s Encrypt with Docker와 wmnnd/nginx-certbot을 참고하여 작성하였습니다.
-
레포지토리 클론:
git clone https://github.com/SeungWookHan/docker-nginx-certbot-example.git
-
구성 추가:
- init-letsencrypt.sh 에서 domains(필수), email(선택)을 수정/추가 하세요.
init-letsencrypt.sh 에서 가능하다면 staging=1로 하여 테스트해보고, 성공한다면 0으로 바꾸어 다시 실행하세요.
- data/nginx/app.conf에서 주석을 따라 자신의 도메인, 컨테이너:포트를 입력하세요.
data/nginx/app.conf의 주석 부분은 인증서가 발급이 성공한 이후에 해제하세요.
-
init-letsencrypt 스크립트를 실행하세요:
./init-letsencrypt.sh
-
주석 해제:
data/nginx/app.conf의 주석 부분 해제 -
docker compose를 실행하세요:
docker compose up --build
All code in this repository is licensed under the terms of the MIT License
. For further information please refer to the LICENSE
file.