I'm attempting to use Traefik for local development, however when I setup the following docker compose file:
services:
  traefik:
    image: "traefik:v2.11"
    container_name: "traefik"
    command:
      - "--log.level=DEBUG"
      - "--api.insecure=true"
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      - "--entryPoints.web.address=:80"
    ports:
      - "80:80"
      - "8080:8080"
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock:ro"
  whoami:
    image: "traefik/whoami"
    container_name: "simple-service"
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.whoami.rule=Host(`whoami.localhost`)"
      - "traefik.http.routers.whoami.entrypoints=web"
It does seem to load the content correctly in every browser (Chrome, Firefox, Edge, even Postman). However for some reason if I attempt to GET http://whoami.localhost using Safari, I receive "Safari Can't Find Server". I'm not sure if this is due to lack of some additional setup necessary for it to work in Safari, but I couldn't find any info about this issue anywhere. Traefik's logs in debug mode don't help me much either since the request never seems to make it to a point where Traefik receives the request at all