Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jwulf/letsencrypt-nginx-sidecar
Run letsencrypt and nginx in a docker-compose side car
https://github.com/jwulf/letsencrypt-nginx-sidecar
docker docker-compose letsencrypt nginx nginx-proxy
Last synced: 8 days ago
JSON representation
Run letsencrypt and nginx in a docker-compose side car
- Host: GitHub
- URL: https://github.com/jwulf/letsencrypt-nginx-sidecar
- Owner: jwulf
- Created: 2019-08-07T11:58:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-18T23:39:12.000Z (about 3 years ago)
- Last Synced: 2024-10-31T23:51:28.295Z (15 days ago)
- Topics: docker, docker-compose, letsencrypt, nginx, nginx-proxy
- Homepage:
- Size: 11.7 KB
- Stars: 19
- Watchers: 2
- Forks: 17
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# letsencrypt-nginx-sidecar
Run letsencrypt and nginx in a docker-compose side car, providing automatic certificate renewal and SSL for your web apps.
This is based on https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion, but with the nginx + letsencrypt containers decoupled from your webapp containers.
This is my workaround for a letsencrypt certificate renewal exhaustion issue that some users encounter: [#374](https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion/issues/374)
## Use
- Create the `letsencrypt` docker network:
```
docker network create letsencrypt
```
- Now start the sidecar with `cd sidecar && docker-compose up -d`. This starts an nginx reverse proxy with a Lets Encrypt sidecar that automatically provisions certificates for application servers that join the `letsencrypt` docker network.- Use the [docker-compose.yml](docker-compose.yml) file as your template for your webapps. Set the `VIRTUAL_PORT` to the port that your container listens on. The nginx proxy will listen on the host machine's ports 80 and 443, and proxy traffic based on the `VIRTUAL_HOST` you set, using LetsEncrypt certificates that it will get.
- Start your webapp with `docker-compose up -d`
Now you can bring your webapp up and down as much as you need to, to update it, and have no issue with certificate renewal exhaustion, as the letsencrypt container stays up all the time.