- May 21, 2020 Docker Server with or without a reverse proxy such as Traefik: If you followed my Docker Media server guide or Docker Traefik v2 guide, you should be good here. Docker Compose: This should also be taken care of if you followed the guides linked above. MySQL Database Server: Don't worry we will talk about this later.
- Oct 27, 2020 Docker installed on your server, which you can do by following How to Install and Use Docker on Ubuntu 18.04. Docker Compose installed with the instructions from How to Install Docker Compose on Ubuntu 18.04. A domain and three A records, db-admin, blog and monitor, that each point to the IP address of your server.
- Jul 16, 2018 In this guide, I will show you how to install UniFi controller on Docker with Traefik reverse proxy. UniFi devices require a controller software, which is one more thing to move and restore when switching servers/systems.
Prefer a fixed version than the latest that could be an unexpected version. Ex: traefik:v2.1.4 Docker images are based from the Alpine Linux Official image.; Any orchestrator using docker images can fetch the official Traefik docker image.
You can install Traefik with the following flavors:
Use the Official Docker Image¶
Choose one of the official Docker images and run it with one sample configuration file:
For more details, go to the Docker provider documentation
Tip
- Prefer a fixed version than the latest that could be an unexpected version.ex:
traefik:v2.1.4
- Docker images are based from the Alpine Linux Official image.
- Any orchestrator using docker images can fetch the official Traefik docker image.
Use the Helm Chart¶
Warning
The Traefik Chart from Helm's default charts repository is still using Traefik v1.7.
Traefik can be installed in Kubernetes using the Helm chart from https://github.com/traefik/traefik-helm-chart.
Ensure that the following requirements are met:
- Kubernetes 1.14+
- Helm version 3.x is installed
Add Traefik's chart repository to Helm:
You can update the chart repository by running:
And install it with the helm
command line:
Helm Features
All Helm features are supported.For instance, installing the chart in a dedicated namespace:
You can customize the installation by specifying custom values,as with any helm chart.
The values are not (yet) documented, but are self-explanatory:you can look at the default values.yaml
file to explore possibilities.
You can also set Traefik command line flags using additionalArguments
.Example of installation with logging set to DEBUG
:
For more details, go to the Docker provider documentation
Tip
- Prefer a fixed version than the latest that could be an unexpected version.ex:
traefik:v2.1.4
- Docker images are based from the Alpine Linux Official image.
- Any orchestrator using docker images can fetch the official Traefik docker image.
Use the Helm Chart¶
Warning
The Traefik Chart from Helm's default charts repository is still using Traefik v1.7.
Traefik can be installed in Kubernetes using the Helm chart from https://github.com/traefik/traefik-helm-chart.
Ensure that the following requirements are met:
- Kubernetes 1.14+
- Helm version 3.x is installed
Add Traefik's chart repository to Helm:
You can update the chart repository by running:
And install it with the helm
command line:
Helm Features
All Helm features are supported.For instance, installing the chart in a dedicated namespace:
You can customize the installation by specifying custom values,as with any helm chart.
The values are not (yet) documented, but are self-explanatory:you can look at the default values.yaml
file to explore possibilities.
You can also set Traefik command line flags using additionalArguments
.Example of installation with logging set to DEBUG
:
Exposing the Traefik dashboard¶
This HelmChart does not expose the Traefik dashboard by default, for security concerns.Thus, there are multiple ways to expose the dashboard.For instance, the dashboard access could be achieved through a port-forward :
Accessible with the url: http://127.0.0.1:9000/dashboard/
Another way would be to apply your own configuration, for instance,by defining and applying an IngressRoute CRD (kubectl apply -f dashboard.yaml
):
Use the Binary Distribution¶
Grab the latest binary from the releases page.
Check the integrity of the downloaded fileInstall Traefik For Docker
And run it:
Compile your Binary from the Sources¶
Install Trafik Docker Command
All the details are available in the Contributing Guide