version: '3.8' services: traefik: image: traefik:v3.0 container_name: traefik restart: always ports: - "8000:8000" # Expose Traefik on port 8000 volumes: - "/var/run/docker.sock:/var/run/docker.sock" - "./traefik.yml:/etc/traefik/traefik.yml" - "./dynamic.yml:/etc/traefik/dynamic.yml"