Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can’t get it to work #4

Open
tjfoth opened this issue Jul 14, 2024 · 1 comment
Open

Can’t get it to work #4

tjfoth opened this issue Jul 14, 2024 · 1 comment

Comments

@tjfoth
Copy link

tjfoth commented Jul 14, 2024

I would expect to see a router for it, but one doesn’t appear.

Are there any diagnostics you’d like?

@tjfoth
Copy link
Author

tjfoth commented Jul 14, 2024

Here’s my docker-compose.yml

version: '3.9'

services:
reverse-proxy:
# The official v3 Traefik docker image
image: traefik:v3.0
# Enables the web UI and tells Traefik to listen to docker
command:
- --api.insecure=true
- --providers.docker=true
- --log.level=DEBUG
- --providers.docker.exposedbydefault=false
- --entrypoints.web.address=:80
- --experimental.plugins.shorty.moduleName=github.com/Spakl-io/shorty
- --experimental.plugins.shorty.version=v1.0.0
ports:
# The HTTP port
- "80:80"
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
network_mode: bridge
labels:
- "traefik.http.routers.shorty.rule=Host(go.local)"
- "traefik.http.routers.shorty.service=traefik-shorty@docker"
- "traefik.http.routers.shorty.middlewares=shorty1@docker"
- "traefik.http.middlewares.shorty1.plugin.shorty.links.google=https://google.com"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant