March 12, 2024 - Reading time: 2 minutes
I'll be saving my data in ~/docker in this example
cd docker (mkdir docker if you don't have it)mkdir traefik and cd traefik nano docker-compose.yml [Template]Replace admin:123 with a secure loginecho $(htpasswd -nb "admin" "123") | sed -e s/\\$/\\$\\$/g
Use the result from this command
touch config.ymltouch acme.jsonnano traefik.ymlmkdir logssudo docker network create proxysudo docker compose up -dsudo docker compose logs -f (if you want to see logs)