Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wmnnd/nginx-certbot
Boilerplate configuration for nginx and certbot with docker-compose
https://github.com/wmnnd/nginx-certbot
Last synced: 25 days ago
JSON representation
Boilerplate configuration for nginx and certbot with docker-compose
- Host: GitHub
- URL: https://github.com/wmnnd/nginx-certbot
- Owner: wmnnd
- License: mit
- Created: 2018-09-28T08:11:17.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-01T16:46:37.000Z (10 months ago)
- Last Synced: 2024-10-01T21:22:14.381Z (about 1 month ago)
- Language: Shell
- Size: 33.2 KB
- Stars: 3,148
- Watchers: 45
- Forks: 1,167
- Open Issues: 53
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - wmnnd/nginx-certbot - Boilerplate configuration for nginx and certbot with docker-compose (Shell)
- awesome-starred - wmnnd/nginx-certbot - Boilerplate configuration for nginx and certbot with docker-compose (others)
README
# 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](https://medium.com/@pentacent/nginx-and-lets-encrypt-with-docker-in-less-than-5-minutes-b4b8a60d3a71).`init-letsencrypt.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. [Install docker-compose](https://docs.docker.com/compose/install/#install-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.conf4. Run the init script:
./init-letsencrypt.sh
5. Run the server:
docker-compose up
## Got questions?
Feel free to post questions in the comment section of the [accompanying guide](https://medium.com/@pentacent/nginx-and-lets-encrypt-with-docker-in-less-than-5-minutes-b4b8a60d3a71)## License
All code in this repository is licensed under the terms of the `MIT License`. For further information please refer to the `LICENSE` file.