traefik-compose

Image 1

This repo is simple traefik in docker.

Features

  • Domain mapping
  • BasicAuth
  • Compress
  • RateLimit
  • Redirect to https
  • Let's encrypt (SSL)

Usage

Create .env file from .env.example

    cp .env.example .env

Generate Basic authentication Note: all dollar signs in the hash need to be doubled for escaping.

    echo $(htpasswd -nb user password) | sed -e s/\\$/\\$\\$/g

Run

    docker-compose up

Endpoint

Frontend : http://localhost

Backend : http://api.localhost

Dashboard (Basic-auth) : http://dashboard.localhost