Hi,
i am trying to expose the traefik dashboard to "traefik.localhost" but all I a 404 error.
Can someone help please?
docker-compose:
version: '3'
services:
treafik:
image: traefik:2.0
container_name: traefik
hostname: traefik
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${PWD}/traefik.yml:/etc/traefik/traefik.yml
ports:
- 80:80
- 443:443
- 8080:8080
traefik.yaml
## traefik.yml
# Docker configuration backend
providers:
docker:
exposedByDefault: false
# API and dashboard configuration
api:
dashboard: true
http:
routers:
dashboard:
rule: "Host(`traefik.localhost`)"
service: "api@internal"
accessLog: {}