Don't forget to :
-
Have your subdomains setup.
-
Create the acme file
touch acme.json
chmod 600 acme.json
- Create user(s) credentials
sudo apt-get install apache2-utils
htpasswd -nb admin secure_password
- Set user(s) credentials and email address in
traefik.toml
cp traefik.default.toml traefik.toml
nano traefik.toml
# set user credentials to the hash from htpasswd
# set email to something
- Set the front-end rule for the Traefik dashboard in
docker-compose.yml
.
cp docker-compose.default.yml docker-compose.yml
nano docker-compose.yml
# set monitor subdomain in front-end rule
- Create a docker network called proxy.
sudo docker network create proxy
- Start Traefik container
sudo docker-compose up -d