-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Add guides for caddy-docker-proxy #170
Comments
Hey. The docs for caddy-docker-proxy seems quite straight forward to the normal configuraton. You need to set ordering in the global block
Then as per the docs just map over accordingly https://github.com/lucaslorentz/caddy-docker-proxy
So I guess it would look something like this for Sablier
I don't use that extension but it should be pretty straight forward. I would assume that it likely wont get added to the docs, as it should be straightforward to do that mapping, and its documentation for an extension rather that Caddy itself. Hope the above helps. |
Based on how containers are discovered, see: I'd say that the caddy docker proxy does not work with containers that are shutdown. We should probably open up a pull request just for that on their repository. A simple scan for containers that are down or services with 0 replicas would work. |
Now that the issue lucaslorentz/caddy-docker-proxy#527 has been closed, I should try some test on my end and then add the relevant documentation |
[I am not a developer, but have been learning docker for self hosting purposes so my knowledge is limited and apologies if this is a dumb question.] But it looks like i cannot directly use caddy-docker-proxy with sablier or vice-versa - is that correct assumption ? Pls correct me if my thinking is wrong. What do I need to do to be able to use caddy-docker-proxy with sablier. Do I need to build a custom docker image ? Any help to get both of them working together is appreciated ! Thanks ! |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
hi @ab623 - thanks for your earlier reply. Sorry to ask basic questions, but I have tried looking at the sablier docs and caddy-docker-proxy docs, and still haven't been able to put together yet. I am not a developer, just been learning docker to put together my self hosted set-up. Can you pls tell me where do I need to set this ?
My current sample docker compose file is below.
and the error I see in the logs is -
I am using the serfriz/caddy-ratelimit-dockerproxy-sablier image for caddy, as serfriz helped to put together a image with caddy, sablier and caddy-docker-proxy. |
The block from my config is: (seems like i mistyped it in my original comments. Hence the confusion)
Therefore it seems as if
should be this
Give that a try. Some more info here #67 (comment) |
That was the issue - missing the order keyword. thank you @ab623 ! |
hey @acouvreur In case you are interested in adding this to the sablier docs, the docker compose I posted to Issue #264 can be used. services:
caddy:
image: serfriz/caddy-ratelimit-dockerproxy-sablier:latest
container_name: caddy
dns: 10.0.0.25 #pihole
restart: always
environment:
- CADDY_INGRESS_NETWORKS=test_default
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- path/to/self-signed certificate files:/certs:ro
ports:
- 80:80
- 443:443
- 443:443/udp
- 10000:10000
labels:
caddy.order: sablier before reverse_proxy
networks:
default:
ipv4_address: 10.0.0.26
homer:
image: b4bz/homer:latest
container_name: homer
dns: 10.0.0.25 #pihole
restart: always
environment:
- INIT_ASSETS=0
volumes:
- ./:/www/assets
ports:
- 8080
labels:
caddy: homer.local.host
caddy.tls: "path to self-signed certificate files"
caddy.sablier.enable: true
caddy.sablier.names: homer
caddy.sablier.dynamic:
networks:
default:
ipv4_address: 10.0.0.27 |
Thanks @accforgithubtest ! |
Hello,
I think this is a great project and thanks for all the great work by the way !
I am trying to use caddy-docker-proxy as a reverse proxy and would like to know how to setup sablier with caddy-docker-proxy.
caddy-docker-proxy allows to specify labels on the docker compose file for individual containers/services, and I would like to know how to use sablier.
I just saw the notes for a PR that the 1.4 beta version supports caddy, but cannot figure out how to set it up correctly.
A quick update to docs examples with docker compose and caddy-docker-proxy is much appreciated, thanks !
The text was updated successfully, but these errors were encountered: