An open API service indexing awesome lists of open source software.

https://github.com/wollomatic/simple-traefik

simple traefik v2 or v3 / letsencrypt deployment with docker compose
https://github.com/wollomatic/simple-traefik

docker docker-compose lets-encrypt letsencrypt letsencrypt-certificates traefik traefik-docker traefik-v2 traefik-v3 traefik2 traefik3

Last synced: 8 months ago
JSON representation

simple traefik v2 or v3 / letsencrypt deployment with docker compose

Awesome Lists containing this project

README

          

# simple traefik v3.x deployment with docker compose example

For a sample traefik v2.x deployment see branch 'traefik2'.

This example runs traefik as root with the docker socket mounted into the container to keep this example simple.
Doing this is not a good security practise. Be warned and know what you do!

For an hardened traefik v2 example see [wollomatic/traefik2-hardened](https://github.com/wollomatic/traefik2-hardened).

What to do before using this example:

* chmod 600 config/acme.json
* docker-compose.yaml: change hostname 'foobar.example.invalid' to your real hostname
* docker-compose.yaml: change basic auth password!! (see comments in file)
* config/traefik.yaml: change email address
* open each file, check it by yourself and understand what it does
* create a docker network named 'traefik-servicenet' (`docker network create traefik-servicenet`)

## migrating traefik v2 to v3

see https://doc.traefik.io/traefik/v3.0/migration/v2-to-v3/

Migrating vom traefik v2 to v3 is quite simple, yet there are some changes to be aware of:

* Router configuration `Host(\`foo.example.invalid\`,\`bar.example.invalid\`)` is now `Host(\`foo.example.invalid\`) || Host(\`bar.example.invalid\`)`
* Regexp syntax has changed. See https://doc.traefik.io/traefik/v3.0/migration/v2-to-v3/#matchers
* Because content type auto detection is now disabled by default, you have to add the middleware ContentType to make the dashboard and other services work again.
* Since http3 is now enabled by default, you must remove the `http3` entry from the experimental section of the traefik config file.