This article has not been completed yet. However, it may already contain helpful Information and therefore it has been published at this stage.

mkdir -p /var/lib/docker/custom_container/traefik
chmod 755 /var/lib/docker/custom_container/traefik
chmod 750 /var/lib/docker/custom_container/traefik/certs
chmod 644 /var/lib/docker/custom_container/traefik/certs/cert.crt
chmod 644 /var/lib/docker/custom_container/traefik/certs/cert.key

https://it-infrastructure.solutions/generating-some/

docker network create intranet
nano /var/lib/docker/custom_container/traefik/docker-compose.yml
version: '3'

services:
  traefik:
    image: traefik:1.7.0
    ports:
      - 4443:4443
      - 8090:8090
    networks:
      - intranet
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /var/lib/docker/custom_container/traefik/traefik.toml:/traefik.toml
      - /var/lib/docker/custom_container/traefik/certs/:/certs/
    container_name: traefik

networks:
  intranet:
    external: true
    
nano /var/lib/docker/custom_container/traefik/traefik.toml
debug = false

logLevel = "DEBUG"
defaultEntryPoints = ["https"]

[web]
  address = ":8090"

[entryPoints]
  [entryPoints.https]
  address = ":4443"
    [entryPoints.https.tls]
      [[entryPoints.https.tls.certificates]]
      certFile = "/certs/cert.crt"
      keyFile = "/certs/cert.key"

[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "ivbdom.local"
watch = true
exposedbydefault = false
docker-compose up -d
Traefik - proxy development server with self-signed SSL certificate
You want to check how (or if) your application works with SSL encryption without exposing it to the Internet? Use a self-signed SSL…
GitHub - jmarceli/traefik-self-signed-ssl-proxy: Add self-signed SSL for local development server
Add self-signed SSL for local development server. Contribute to jmarceli/traefik-self-signed-ssl-proxy development by creating an account on GitHub.