This guide outlines the steps to set up Traefik as a reverse proxy using mkcert
for SSL certificate generation and Docker Compose for container orchestration.
sudo apt install mkcert libnss3-tools
brew install mkcert
mkcert -install
Clone the Traefik reverse proxy repository:
git clone https://github.com/moukail/traefik-reverse-proxy.git
cd traefik-reverse-proxy
Generate SSL certificates for your domain (e.g., app.localhost):
mkcert -cert-file certs/cert.pem -key-file certs/key.pem "app.localhost" "*.app.localhost"
Start the Traefik reverse proxy and associated containers:
docker compose up -d --build
Access the Traefik dashboard to manage your reverse proxy configuration:
https://traefik.app.localhost/dashboard/#/
These instructions help you set up a secure reverse proxy with Traefik, ensuring secure communication between your applications and the internet.