Add self-signed SSL for local development server
Clone or download
Latest commit f7d555f Nov 8, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
certs Initial commit Nov 7, 2018 Initial commit Nov 7, 2018
docker-compose.yml Initial commit Nov 7, 2018
traefik.toml Initial commit Nov 7, 2018

Traefik - proxy development server with self-signed SSL certificate

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:


In traefik.toml file adjust IP address, domain name my.test and ports 5000 and 4000 if needed.

Then inside root repository dir execute:

docker-compose up

NOTE: 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.crt

Execute this command inside ./certs/ dir and enter the correct FQDN when prompted.

author: Jan Grzegorowski