Global template for labels when/if we move to caddy #428
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It's kinda annoying to put the traefik labels in all the recipes e.g.
Maybe inherit from a common source when we switch over? Just an idea I'm putting out there.
Yeh would be nice to DRY-ify this labels situation.
These could be programmatically appended into the labels at runtime by
abra
? It could actually maybe work, I'm not sure. It might create a situation where we need to make anabra
release to support some new recipe release? But some of these labels are just pure boilerplate and we could create.env
pluggable values to thread in?Thanks for the suggestion @codegod100! 🙏
I agree with not-repeating-ourselves in general.
It does feel like there's a balance in this specific situation between reducing duplication, and preserving the ability for Co-op Cloud recipes to be used without abra – if we remove the reverse proxy labels, then we reduce the number of people who could use recipes without abra from "possibly some" (whoever is using Traefik, and happy to accept our conventions about env variable naming) to "definitely none" (because they'd have to fork the recipe to add labels, every time).
Also, this might be affected by whatever we decide on #388, and whether there would more labels we'd need to add to do so – if it continues to be 3 lines (down from the current 10), it seems a lot more bearable to keep them in the recipes.
- "coop-cloud.${STACK_NAME}.version=0.1.0+2.1.1"
For completeness - this isn't a Traefik label, I'm pretty sure we need to keep it regardless.
"It does feel like there's a balance in this specific situation between reducing duplication, and preserving the ability for Co-op Cloud recipes to be used without abra"
Why would someone use coop cloud and not abra?
Oh yeh, how did I forget this... gotta document this recipe Prime Directive 😄
Here's one set of reasons! https://cgalo.dev/pages/from-coop-cloud-to-plain-docker-swarm/
Personally, it's also a project goal to try and make the constituent pieces of Co-op Cloud useful even if the wheels fall off the project as a whole. (This goal is less of a priority the more time that goes on that we continue existing, but it's still present)
Btw the approach in https://docs.coopcloud.tech/operators/handbook/#proxying-apps-outside-of-co-op-cloud-with-traefik shows that we could probably drop all labels from the compose configurations and generate
/etc/traefik/file-providers/...
configurations instead. I'm not suggesting we do that atm as I haven't really thought through it but it might be something to experiment or try out if you're prototyping over here.Pushed https://docs.coopcloud.tech/abra/design/. I guess we're settling on "appropriate levels of copy/pasta atm". Gonna close off for now, please re-open if you have more for it. Thanks for weighing in.