Skip to content
프로젝트

Heziode/traefik-v2-https-ssl-localhost

GitHub에서 보기

소개

Run Traefik v2 on localhost with HTTPS (mkcert, self-signed certificates, Docker).

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Traefik v2 HTTPS (SSL) on localhost

This repo is a minimal template to use Traefik v2 on localhost with HTTPS support.

To get started, just clone this repo:

git clone https://github.com/Heziode/traefik-v2-https-ssl-localhost.git

Next, go to the root of the repo (cd traefik-v2-https-ssl-localhost) and generate certificates using mkcert :

# If it's the firt install of mkcert, run
mkcert -install

# Generate certificate for domain "docker.localhost", "domain.local" and their sub-domains
mkcert -cert-file certs/local-cert.pem -key-file certs/local-key.pem "docker.localhost" "*.docker.localhost" "domain.local" "*.domain.local"

Create networks that will be used by Traefik:

docker network create proxy

Now, start containers with :

# Start Traefik
docker-compose -f docker-compose.yml up -d
# Start "whoami" example
docker-compose -f whoami.yml up

You can now go to your browser at whoami.docker.localhost, enjoy :rocket: !

Note: you can access to Træfik dashboard at: traefik.docker.localhost

Don't forget that you can also map TCP and UDP through Træfik.

Code of Conduct

This project adheres to the Contributor Covenant. By participating in this project you agree to abide by its terms.

License

MIT

관련 프로젝트 살펴보기

불러오는 중…