Traefik’s "Basic example with docker-compose" not working

  docker, docker-compose, traefik

Following this tutorial

version: '3.8'

services:
  reverse-proxy:
    container_name: traefik
    image: traefik:v2.5
    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:
    container_name: whoami
    image: "traefik/whoami"
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.whoami.rule=Host(`whoami.vws.dev`)"
      - "traefik.http.routers.whoami.entrypoints=web"

When trying on my browser, I can’t get a response from :

Source: Docker Questions

LEAVE A COMMENT