Skip to content

smajti1/traefik-reverse-proxy

Repository files navigation

Revers proxy for many webpages see more on https://docs.traefik.io

How to Start

cp .env.example .env

Create the external network "gateway"

docker network create gateway

Start docker container

docker-compose -f docker-compose.prod.yml up --detach

Add labels in docker compose file (see https://docs.traefik.io/routing/providers/docker) and restart your container

Development

docker-compose -f docker-compose.dev.yml up --detach

create *.local private self-signed certificate files

openssl req -x509 -newkey rsa:4096 -nodes -keyout certs/_wildcard.local.key -out certs/_wildcard.local.crt -days 365 -config certs/minimal.cnf

Only important question is with Common Name (e.g. server FQDN or YOUR name) and for development answer is *.local

Shortcuts

  • Traefik cli help command docker-compose exec reverse-proxy traefik -h
  • Dashboard link http://localhost:8080/dashboard/#/
  • Show logs docker-compose logs -f

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages