Skip to content

SeungWookHan/docker-nginx-certbot-example

Repository files navigation

docker compose를 이용한 nginx, letsencrypt 예시

해당 레포지토리는 step-by-step guide on how to set up nginx and Let’s Encrypt with Dockerwmnnd/nginx-certbot을 참고하여 작성하였습니다.

Installation

  1. docker, docker compose 설치.

  2. 레포지토리 클론: git clone https://github.com/SeungWookHan/docker-nginx-certbot-example.git

  3. 구성 추가:

  • init-letsencrypt.sh 에서 domains(필수), email(선택)을 수정/추가 하세요.
    init-letsencrypt.sh 에서 가능하다면 staging=1로 하여 테스트해보고, 성공한다면 0으로 바꾸어 다시 실행하세요.
  • data/nginx/app.conf에서 주석을 따라 자신의 도메인, 컨테이너:포트를 입력하세요.
    data/nginx/app.conf의 주석 부분은 인증서가 발급이 성공한 이후에 해제하세요.
  1. init-letsencrypt 스크립트를 실행하세요:

    ./init-letsencrypt.sh
    
  2. 주석 해제:
    data/nginx/app.conf의 주석 부분 해제

  3. docker compose를 실행하세요:

    docker compose up --build
    

License

All code in this repository is licensed under the terms of the MIT License. For further information please refer to the LICENSE file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published