This repository shows an example of a Docker Traefik container configuration that adds a self-signed SSL certificate to a running application server.
A detailed tutorial is available here: https://www.grzegorowski.com/traefik-proxy-development-server-self-signed-ssl/
In traefik.toml file adjust 192.168.0.16 IP address, domain name my.test and ports 5000 and 4000 if needed.
Then inside root repository dir execute:
docker-compose upNOTE: If you have changed the domain name my.test to any other, you should generate a new self-signed SSL certificate files with:
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout cert.key -out cert.crtExecute this command inside ./certs/ dir and enter the correct FQDN when prompted.
author: Jan Grzegorowski