Traefik ui and ssl is dead after server restart

Dear Guys!

Before server restart traefik ui was working and all my swarm instances were working fine on https.
I did restart my physical server and traefik stopped.
I listed all the docker processes and it was empty.
So I went to the traefik directory and deployed the traefik stack.
After that my services were up, but they didn't have ssl.
I checked the traefik admin and it gave me 'Your connection is not private' error, when I accepted I got redirected to the same page with 'Your connection is not private' I accepted then I get to the page with '404 page not found'.

I am quite new to traefik and I am really sorry if this is a dumb and easy problem, I was trying to make it work but I couldn't figure it out in 11 hours so please help me.

My goal is to have ssl on my swarm instances and let traefik admin work again.

This is the docker-stack.yml I have:

version: '3'

services:
  traefik:
    image: 'traefik:v2.0'
    networks:
      - traefik-public
    ports:
      - '80:80'
      - '443:443'
    volumes:
      - '/etc/localtime:/etc/localtime:ro'
      - '/var/run/docker.sock:/var/run/docker.sock:ro'
      - './data/traefik.yml:/traefik.yml:ro'
      - 'traefik-certs:/certificates'
      - './data/config.yml:/config.yml:ro'
    deploy:
      labels:
        - traefik.enable=true
        - providers.docker.swarmMode=true
        - "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)"
        - "traefik.http.routers.http-catchall.entrypoints=http"
        - "traefik.http.routers.http-catchall.middlewares=https-redirect@file"
        - traefik.http.middlewares.traefik-auth.basicauth.users=${USERNAME}:${HASHED_PASSWORD}
        - traefik.http.routers.traefik.entrypoints=https
        - 'traefik.http.routers.traefik.rule=Host(`traefik.${DOMAIN}`)'
        - traefik.http.routers.traefik.middlewares=traefik-auth
        - traefik.http.routers.traefik.tls=true
        - traefik.http.routers.traefik.tls.certresolver=http
        - traefik.http.routers.traefik.service=api@internal
        - "traefik.http.services.traefik.loadbalancer.server.port=8080"

volumes:
  traefik-certs:

networks:
  traefik-public:
    external: true

this is the data/config.yml

http:
  middlewares:
    https-redirect:
      redirectScheme:
        scheme: https

and this is the data/traefik.yml
(I starred out my email because of privacy)

api:
  dashboard: true
  debug: true

entryPoints:
  http:
    address: ":80"
  https:
    address: ":443"

providers:
  docker:
    endpoint: "unix:///var/run/docker.sock"
    exposedByDefault: false
    swarmMode: true
    network: traefik-public
    swarmModeRefreshSeconds: 15s
  file:
    filename: /config.yml
    watch: true

certificatesResolvers:
  http:
    acme:
      email: *************@gmail.com
      storage: acme.json
      httpChallenge:
        entryPoint: http
log:
  level: DEBUG

these are the services running now after restarted traefik:
(I starred out the registry url because of privacy)

6794bb2f665d   registry.gitlab.com/*****/**********/api-service/nginx:latest       "/docker-entrypoint.…"   10 hours ago   Up 10 hours   80/tcp     api-service_nginx.1.kkwc4vzxxc2654xej0nugsw63
a32ec3a05d84   registry.gitlab.com/*****/**********/api-service/php:latest         "docker-php-entrypoi…"   10 hours ago   Up 10 hours   9000/tcp   api-service_php.1.8ashnchxqind15yn0qnguvbvq
9dbce1ffd885   registry.gitlab.com/*****/**********/api-service/nginx_dev:latest   "/docker-entrypoint.…"   10 hours ago   Up 10 hours   80/tcp     api-service-dev_nginx.1.5gz7au5bhi0phiossj4ac35sc
e4406840100b   registry.gitlab.com/*****/**********/api-service/php_dev:latest     "docker-php-entrypoi…"   10 hours ago   Up 10 hours   9000/tcp   api-service-dev_php.1.4oct39siv5smse696qx9gbfl0
679ccc8edb5a   gitlab/gitlab-runner:latest                                               "/usr/bin/dumb-init …"   11 hours ago   Up 11 hours              gitlab-runner_runner_1.1.aphdbebnzdi0klvbb8jkq723u
2fac8e1f7fc2   traefik:v2.0                                                              "/entrypoint.sh trae…"   11 hours ago   Up 11 hours   80/tcp     traefik_traefik.1.yjpblwmjdsrgnm6927rvdr665

Looking forward to your answer!