🔮 My updates:
- nginx changed to openresty:alpine (latest)
- fixed docker compose command
- https / now returns 'ok!'
- init script replace domain names in app.conf
set domain in
init-letsencrypt.sh
and run it. That's all. 🎉
This repository is accompanied by a step-by-step guide on how to set up nginx and Let’s Encrypt with Docker.
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.
-
Clone this repository:
git clone https://github.com/TABmk/nginx-certbot.git .
-
Modify configuration:
- Add domain (only one ATM) and email addresses to
init-letsencrypt.sh
-
Run the init script:
./init-letsencrypt.sh
-
Run the server:
docker-compose up
Feel free to post questions in the comment section of the accompanying guide
All code in this repository is licensed under the terms of the MIT License
. For further information please refer to the LICENSE
file.