Traefik
Making directories
I'll be saving my data in ~/docker in this example
- Open terminal and
cd docker(mkdir docker if you don't have it) mkdir traefikand cd traefik This will be where you save traefiknano compose.yml— Template- CTRL + X, y and Enter
For the basicauth.users label, replace admin:123 with a secure login:
echo $(htpasswd -nb "admin" "123") | sed -e s/\\$/\\$\\$/g
Use the result from this command.
Making a few more files
touch config.ymltouch acme.jsonnano traefik.yml— Template, add your Cloudflare email. CTRL + X, y and Entermkdir logs
Almost done
sudo docker network create proxysudo docker compose up -dsudo docker compose logs -f(optional, to see logs)
Head over to your domain and you should see the Traefik dashboard.