Skip to content

Boilerplate configuration for nginx and certbot with docker-compose

License

Notifications You must be signed in to change notification settings

Minish144/nginx-certbot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boilerplate for nginx with Let’s Encrypt on docker-compose

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

setup.sh fetches and ensures the renewal of a Let’s 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. Clone this repository: git clone https://github.com/Minish144/nginx-certbot.git .

  2. Modify configuration:

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

    ./setup.sh
    

Update nginx config

  1. Update your config in data/nginx/app.conf

  2. Run the script:

    ./reload.sh
    

About

Boilerplate configuration for nginx and certbot with docker-compose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%