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
- Host: GitHub
- URL: https://github.com/wollomatic/simple-traefik
- Owner: wollomatic
- Created: 2021-10-12T18:17:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-16T20:10:09.000Z (over 1 year ago)
- Last Synced: 2025-02-06T17:45:30.416Z (over 1 year ago)
- Topics: docker, docker-compose, lets-encrypt, letsencrypt, letsencrypt-certificates, traefik, traefik-docker, traefik-v2, traefik-v3, traefik2, traefik3
- Homepage:
- Size: 32.2 KB
- Stars: 52
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.