CasaOS icon indicating copy to clipboard operation
CasaOS copied to clipboard

[Feedback] Ability to add Traefik specific labels when installing apps

Open anlek opened this issue 2 years ago • 12 comments

Description

I'd love to use Traefik to do proxy routings, however, the current version of CasaOS doesn't support me adding/editing labels. Any chance that's a feature that's coming?

Additional Information

 - OS: linux
 - CasaOS Version: 0.4.0
 - Disk Total: 27712 
 - Disk Used: 10471 
 - System Info: [Debian GNU/Linux 11   \l Bit:64 Mem:7803M Core:4 Linux CasaOS 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux]
 - Remote Version: 0.4.0
 - Browser: Chrome 
 - Version: 108.0.0.0

anlek avatar Dec 20 '22 22:12 anlek

@anlek - We will be looking into this in future iteration.

Currently CasaOS depends on container labelling heavily, so exposing label editing is a bit risky. But we will see.

tigerinus avatar Dec 22 '22 01:12 tigerinus

Ability to add docker labels, its very impotent please add it

gzavadskiy avatar Dec 25 '22 18:12 gzavadskiy

It's such a shame that I haven't got to understand how Traefik works until recently... It's definitely a big plus to CasaOS.

Seriously looking into this...

tigerinus avatar May 28 '23 03:05 tigerinus

I need label to use WATCHTOWER_LABEL_ENABLE="true"

Jamyz avatar Jun 05 '23 20:06 Jamyz

I need label to use WATCHTOWER_LABEL_ENABLE="true"

My bad this issue is meant to track labelling specific to Traefik.

While there is no UI to allow adding labels, you can export the compose file from your app as YAML, update the label property manually, and then go to terminal and run

casaos-cli app-management apply <appid> -f <path to the updated yaml file>

See https://docs.docker.com/compose/compose-file/deploy/#labels for details and examples

tigerinus avatar Jun 05 '23 21:06 tigerinus

At minimum, we need to allow user to edit LABEL for each app in the UI.

This feature needs to be designed and implemented.

tigerinus avatar Jul 06 '23 02:07 tigerinus

As a workaround you can install and use Portainer in the meanwhile to edit the labels, if you don't want to do it over command line.

mr-manuel avatar Aug 17 '23 17:08 mr-manuel

You could filter your own labels out of the "edit/add" list

anlek avatar Aug 24 '23 05:08 anlek

@tigerinus Looked at the CasaOS-App repo and CasaOS-UI repo. As far as I can tell, most of the App there doesn't expose some sort of common LABELS (they do expose some, but most of them are default labels from docker-image). And the CasaOS-UI repo, it doesn't seem its adding any extra casa specific Label either.

Could you point me to some codeblocks where I can take a look to see how the labels are used?

kforeverisback avatar Jul 18 '24 22:07 kforeverisback

Agreed this would be extremely helpful! Seems easy to filter special Casa labels by prefix? Alternatively only allow editing of labels that were originally user created, if a DB exists to remember that info.

Forgive my ignorance, please.

hischampion avatar Aug 02 '24 04:08 hischampion

Any updates on the ETA for this ticket?

anlek avatar Sep 21 '24 03:09 anlek

I am looking at moving out from cli oriented management, and this feature is for me a requirement to commit this migration.

I would propose another click-ful label edition:

Why not proposing some global configuration to set a default set of labels, env vars and more, where each param could be set as mandatory or not, with a meaningful name and description, default values based on the app name by example, and more. And when you go to install/edit/update an app, it displays those pre-configured params in a form, where the default values are already filled, and you can't install the app unless you set the mandatory params.

This would finally support any proxy (not only traefik) and all the docker-aware stuff for auth, monitoring and much more.

Chuckame avatar Oct 05 '24 15:10 Chuckame

I found this.

https://github.com/mr-manuel/CasaOS-HomeAutomation-AppStore

krod1408 avatar Feb 23 '25 16:02 krod1408

This missing functionality is a significant drawback for https://getwud.github.io/wud/#/

StancuFlorin avatar Aug 31 '25 06:08 StancuFlorin