Simple setup of Traefik with Let's Encrypt certificates (https, will be updated automatically)
Execute init.sh
and follow the instructions. This will do the following:
.env
file where some variables will have default values and some have to be set manuallyconfig/traefik.toml
file, which is the configuration for your Traefik instance (Based on .env
file)docker-compose.yml
file (Based on .env
file).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.
docker-compose up -d
Here are some important aspects so Traefik can find your docker services:
.env
fileMore info about labels: https://docs.traefik.io/configuration/backends/docker/
An example configuration of a separate service where the routing will be managed by Traefik can be found in the sample-services
folder.
More instructions coming soon