Skip to content

Traefik local proxy, use HTTPS on your local network

Notifications You must be signed in to change notification settings

Te4g/traefik-local-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traefik local proxy

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage

About The Project

The goal is to be able to run you website locally using HTTPS. We use traefik and a self-signed certificate to achieve this. By just assigning labels to your docker containers, you can have a local proxy that will route your requests to the correct container.

(back to top)

Getting Started

Prerequisites

  • Docker
  • Make

Installation

  1. Clone the repo
    git clone https://github.com/Te4g/treafik-local-proxy.git
  2. Optional: you can change the domain used in the cert.conf file, default is dev.localhost
  3. Run make install
  4. Run make start

(back to top)

Usage

Once this project is running, you can then start your other projects by adding to your compose.yaml file some labels:

/!\ Be careful to only use a third level domain, like my-project-name.dev.localhost and not api.my-project-name.dev.localhost or my-project-name.localhost

    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.my-project-name.rule=Host(`my-project-name.dev.localhost`)"
      - "traefik.http.routers.my-project-name.entrypoints=websecure"
      - "traefik.http.routers.my-project-name.tls=true"

(back to top)

About

Traefik local proxy, use HTTPS on your local network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published