- Create a config file in home
~/.traefik/traefik.yml
and copy paste the following content there.
global:
checkNewVersion: true
sendAnonymousUsage: false
entryPoints:
web:
address: :80
api:
insecure: true
providers:
docker:
exposedByDefault: false
- Start Traefik by running the following command.
docker run -d -p 8080:8080 -p 80:80 --name traefik \
--net laravel-cruise --restart always \
-v ~/.traefik/traefik.yml:/etc/traefik/traefik.yml \
-v /var/run/docker.sock:/var/run/docker.sock \
traefik:latest
- Visit http://localhost:8080/ to view the dashboard.