Docker4LocalDev

Please, follow the full tutorial on Medium!

Run with Docker Compose

docker-compose -f traefik.yml up -d

Available domains

Locally-trusted certificate

You need to generate your own locally-trusted certificate.

Install Mkcert on your system.

Once installed, run mkcert-install.

Than you are ready to generate your self-signed certificates:

mkcert -key-file ./certs/key.pem -cert-file ./certs/cert.pem localdev 'docker.localdev' '*.docker.localdev'

Move the generated certificates (cert.pem, key.pem) to the folder certs/ on the root of your traefix.