services: traefik: image: traefik:latest container_name: traefik command: - --log.level=ERROR - --api.insecure=true - --providers.docker=true - --providers.docker.exposedbydefault=false - --entrypoints.web.address=:80 # - --entrypoints.websecure.address=:443 ports: - 80:80 # - 443:443 - 8080:8080 networks: - traefik volumes: - /var/run/docker.sock:/var/run/docker.sock:ro labels: - "traefik.enable=true" - "traefik.http.routers.traefik.rule=Host(`traefik.mat`)" - "traefik.http.routers.traefik.entrypoints=web" - "traefik.http.services.traefik.loadbalancer.server.port=8080" - "traefik.http.routers.traefik.service=traefik" - "traefik.docker.network=traefik" # - "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)" # - "traefik.http.routers.http-catchall.entrypoints=web" # - "traefik.http.routers.http-catchall.middlewares=redirect-to-https" # - "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https" networks: traefik: external: true