This project is all about simplifying the process of securing your web traffic with SSL encryption. It's designed to seamlessly integrate Nginx as a reverse proxy with Certbot for automated SSL certificate management, all wrapped up with Docker Compose.
Found this image later: HTTPS-PORTAL
Checkout Traefik if you want to run and connect multiple containers, domains, etc.
- Docker Compose (comes built in with latest docker version)
- Git (optional)
- Clone/Download this repository and move the
ssl_setup
folder in your root project folder (next to your Dockerfile). - Make the generator executable with
chmod +x ssl_setup/generate.sh
. - Run
./ssl_setup/generate.sh
and fill the options. - Do not set a too low refresh rate to avoid rate-limits.
- The script generated a
docker-compose.yml
andnginx.conf
file. - Adjust the files further if you want (Warning: do not run
/generate
again, it will override).
- Set A Record (and AAA Record) to point to your servers IPv4 (and IPv6) address in your domains DNS settings.
- If you use a proxy like Cloudflare make sure that requests like
http://{{YOUR_DOMAIN}}/.well-known/acme-challenge/*
are getting forwarded (do not force HTTPS).
- run
docker compose up --build -d
to start or update the server (docker-compose
for older versions) - run
docker compose down
to stop the server