This project demonstrates the integration of the following tools to create a secure, dynamic, and scalable reverse proxy solution:
git clone https://github.com/scafer/traefik-duckdns-letsencrypt
example.env
file to .env
and set the environment variables with your values:cd traefik-duckdns-letsencrypt
mv .env.example .env
Replace your-duckdns-token
with your DuckDNS token, your-email
with your email address, and your-duckdns-domain
with your duckdns domain (ex: your-domain.duckdns.org).
Start the containers with Docker Compose:
docker-compose up -d
https://whoami.your-domain.duckdns.org
and make sure everything is working properly.To add a new service behind Traefik, simply create a new entry in the services
section, following the example of the whoami
service.
With this setup, you can easily add and manage multiple services behind a single domain, with automatic HTTPS certificates from Let's Encrypt and dynamic DNS updates from DuckDNS.
Feel free to fork and customize this repository to fit your needs!