Replies: 2 comments 1 reply
-
Hi @jumblies ! So, you need to understand the following:
This is really important, because we don't actually know the underlying container from the route. Starting with release Let's say you have services:
dokuwiki:
image: dokuwiki:latest Simply add the following: services:
dokuwiki:
image: dokuwiki:latest
labels:
- sablier.enable=true
- sablier.group=dokuwiki And change your middleware for http:
middlewares:
my-sablier:
plugin:
sablier:
dynamic:
displayName: My Title
refreshFrequency: 5s
showDetails: "true"
theme: hacker-terminal
- names: dokuwiki
+ group: dokuwiki
sablierUrl: http://sablier:10000
sessionDuration: 1m Do you confirm that you have a sablier instance running and accessible from traefik (same internal network, reachable by http://sablier:10000). You have to understand the reverse proxy integration All plugins just do request to the actual sablier server. The server needs to figure out which container to bring up and down, and reverse proxies API are not tighly coupled to container, which is why you have to provide metadata on names and group. It's also worth noting that you can start multiple containers. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response. Taking a stepwise approach, I confirm I have the sablier beta container running on port 10000 sablier docker-compose.yaml
with the log showing:
And I can reach it using curl:
This brings up the point that I don't have an internal network that connects traefik to sablier and that seems like a fundamental flaw. I think I'll get closer to your example in the repo if I move sablier inside the traefik docker compose file. Does that sound right? |
Beta Was this translation helpful? Give feedback.
-
Thanks for taking this on. It has been desired by the community for a while. I think I understand the architecture but can't get it working. I've been watching for how to achieve this since seeing the now defunct free heroku dynos.
Bear with me as I'm not very facile with traefik.
I did clone the repo and when launching from the repo it works exactly as advertised. My difficulty is translating it to my existing traefik.
What I'm trying to achieve is to have dokuwiki shut down when not needed and restart when I try to reach the site.
Traefik docker-compose.yaml
What I'd like is to add it to one site but I get lost on the dynamic setup. I have the dynamic config for dokuwiki below which I think I copied off an issue or discussion but it doesn't do anything and I get 404 errors:
sablier.yaml (dynamic config)
Beta Was this translation helpful? Give feedback.
All reactions