Help with my first setup - beginner

I have been using's SWAG for years and it has served me very well but it has its limitations and there is where I am at. So for years now Traefik has been on my radar but time and not really a need has kept me away from diving into it. That time has come.
I will post my first try of an Traefik setup using docker.
So what is my goal? I have around a dussin subdomains for different services I host, I want to get an SSL certificate from Cloudflare for those. I have read to many posts, watched quite a few YT. This is were I ended up.

      container_name: traefik
      image: traefik
        - --api=true
        - --api.dashboard=true
        - --entrypoints.web.address=:80
        - --entrypoints.websecure.address=:443
        - --certificatesresolvers.cloudflare.acme.dnschallenge=true
        - --certificatesresolvers.cloudflare.acme.dnschallenge.delaybeforecheck=0
        - --certificatesresolvers.cloudflare.acme.dnschallenge.provider=cloudflare
        - --certificatesresolvers.cloudflare.acme.dnschallenge.resolvers[0]=
        - --certificatesresolvers.cloudflare.acme.dnschallenge.resolvers[1]=
        - --certificatesresolvers.cloudflare.acme.caServer=$TRAEFIK_ACME_CASERVER
        - --api.debug=true
        - --log=true
        - --log.level=ERROR
        - --providers.docker=true
        - --providers.docker.exposedbydefault=false
      restart: unless-stopped
        - web
        - '80:80'
        - '443:443'
          - 8080
        - traefik.enable=true
        - traefik.port=8080
        - traefik.http.routers.traefik.service=api@internal
        - traefik.http.routers.traefik.rule=Host(`$TRAEFIK_DASHBOARD`)
        - traefik.http.routers.traefik.middlewares=traefik-auth
        - traefik.http.middlewares.traefik-auth.basicauth.users=$TRAEFIK_USER_PASS
        - /var/run/docker.sock:/var/run/docker.sock:ro
        - ./appdata/traefik/acme.json:/acme.json

Be gentle. Dont scare me away. :slight_smile:
Some more reading so the docker-compose was rewritten completly.
Still need input!

Hello @macmattias

Thanks for using Traefik and posting the question on the forum.

Technically speaking it is always easier to start with fewer configuration parameters and then adding more. Traefik Proxy has a lot of features so starting with basic and then trying to implement more advanced topics seems to be the appropriate way of learning.

Recently we have released two workshops, they are both related to Kubernetes but still seems they are covering basic concepts, especially in the first workshop.

  1. Getting started with Traefik on Kubernetes
  2. Advanced Load Balancing with Traefik 2.5 on Kubernetes.