Skip to content

Commit

Permalink
use plugin from internet
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawid Bialy committed Feb 21, 2023
1 parent 685145e commit dbc99a9
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
services:
traefik:
# image: traefik:2.9
build:
dockerfile: Dockerfile.dev
container_name: "traefik"
command:
- "--log.level=DEBUG"
- "--accesslog"
- "--accesslog.filepath=/var/log/traefik/access.log"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"

- "--experimental.localPlugins.traefik-cf-device-detector.modulename=github.com/davewhit3/traefik-cf-device-detector"
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- logs-local:/var/log/traefik
- .:/app

whoami:
image: "traefik/whoami"
container_name: "simple-service"
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.cfdevicedetect.plugin.cfdevicedetect.autodetect=true"
- "traefik.http.routers.whoami.rule=Host(`whoami.localhost`)"
- "traefik.http.routers.whoami.middlewares=cfdevicedetect@docker"
- "traefik.http.routers.whoami.entrypoints=web"

volumes:
logs-local:

0 comments on commit dbc99a9

Please sign in to comment.