Go to file
Kameron Kenny - pi501 6ae9ad20fc lb and health check 2025-09-12 15:36:28 -04:00
data/nginx lb and health check 2025-09-12 15:36:28 -04:00
.gitignore lb and health check 2025-09-12 15:36:28 -04:00
LICENSE Initial commit 2018-09-28 10:17:07 +02:00
README.md Make init-letsencrypt.sh executable so that users don't have to 2019-06-01 21:38:02 +01:00
docker-compose.yml lb and health check 2025-09-12 15:36:28 -04:00
health_check.sh lb and health check 2025-09-12 15:36:28 -04:00
init-letsencrypt-EXAMPLE_COM.sh init for each site 2024-05-25 10:30:59 -04:00
init-letsencrypt-kameronkenny_com.sh add photos 2024-07-01 10:19:23 -04:00
init-letsencrypt-thelinux_pro.sh tlp 2024-05-25 15:11:25 -04:00
init-letsencrypt-thelinuxpro_net.sh add git 2024-09-15 21:03:50 -04:00
init-letsencrypt.sh init 2024-05-15 23:58:20 -04:00

README.md

Boilerplate for nginx with Lets Encrypt on docker-compose

This repository is accompanied by a step-by-step guide on how to set up nginx and Lets Encrypt with Docker.

init-letsencrypt.sh fetches and ensures the renewal of a Lets Encrypt certificate for one or multiple domains in a docker-compose setup with nginx. This is useful when you need to set up nginx as a reverse proxy for an application.

Installation

  1. Install docker-compose.

  2. Clone this repository: git clone https://github.com/wmnnd/nginx-certbot.git .

  3. Modify configuration:

  • Add domains and email addresses to init-letsencrypt.sh
  • Replace all occurrences of example.org with primary domain (the first one you added to init-letsencrypt.sh) in data/nginx/app.conf
  1. Run the init script:

     ./init-letsencrypt.sh
    
  2. Run the server:

     docker-compose up
    

Got questions?

Feel free to post questions in the comment section of the accompanying guide

License

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