Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.67 KB

README.md

File metadata and controls

38 lines (23 loc) · 1.67 KB

Traefik setup with Let's Encrypt certificates (https)

Installation

Execute init.sh and follow the instructions. This will do the following:

  • Create a .env file where some variables will have default values and some have to be set manually
  • Create the config/traefik.toml file, which is the configuration for your Traefik instance (Based on .env file)
  • Create a docker-compose.yml file (Based on .env file)
  • Create a docker network with the name you've specified in your .env file (Based on .env file)

Important: You have to execute the script at least two times, because you have to set the environment variables first before any other files can be created.

Start Traefik

docker-compose up -d

Include other services into Traefik

Important

Here are some important aspects so Traefik can find your docker services:

  1. The service has to be part of the same docker network as your Traefik instance
  2. The labels of your service/container have to be conform to the version of Traefik you've specified in your .env file

More info about labels: https://docs.traefik.io/configuration/backends/docker/

Examples

An example configuration of a separate service where the routing will be managed by Traefik can be found in the sample-services folder.

In construction...

More instructions coming soon ❤️