-
Notifications
You must be signed in to change notification settings - Fork 178
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
Is it possible to inject directives in an existing service? #639
Comments
Yes, labels with the same site address get merged. |
OK thank. I understand that you mean that when adding extra
and see how it goes |
Sorry if I'm hijacking this issue, but wouldn't this mean that something like this should work? @francislavoie services:
example1:
networks:
- caddy
labels:
caddy: example.com
caddy.reverse_proxy: "{{upstreams 80}}"
example2:
networks:
- caddy
labels:
caddy: example.com
caddy.reverse_proxy: "/api {{upstreams 8080}}"
networks:
caddy:
external: true This should proxy all traffic to |
Path matching is exact. |
sorry -- this is a question and not an Issue but the ""Discussions" tab is not enabled"
I want to change an existing service's definitions in caddy, from another service's docker-compose. Specifically, if you take the example of wildcards in the caddy documentation
This would go directly into caddy's docker-compose labels and then each new site, from its own docker-compose YAML, would need to "inject" into the configuration above blocks such as
Is this possible?
The text was updated successfully, but these errors were encountered: