Demonstrates how to configure a reverse proxy (Traefik in this case) to handle SSL with a custom generated self-signed certificate with mkcert on the frontend and proxy traffic to backend services using HTTP.
- Add (or edit) environment variables used so they match what Windows build your are running and which registry you are using. See the .env file.
- Install mkcert, open a terminal in the /traefik/cert folder and execute
mkcert "*.sitecore-https.local"
- Add
solr.sitecore-https.local
andcm.sitecore-https.local
to your HOSTS file. - Run
docker-compose up --build
IMPORTANT: The traefik service in docker-compose.yml is configured to use port 80 and 443, so if you got anything running using the same ports for example IIS, you need to shut it down (or stop the sites) or change the ports.
- Custom
traefik
image is needed due to an error in traefik that requires containers to run in process isolation mode but official traefik images is not supplied for Windows 1903 and 1909.- This issue may be resolved in traefik v2 but there is another issue with that official images that keeps the container from starting :)