-
Notifications
You must be signed in to change notification settings - Fork 4
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
Possibility to use traefik label #4
Comments
Actually all of the labels required are configurable through environment variables already! (Though I haven't tested that side of it just yet)
Feel free to launch the container with whatever you'd like the labels to be, I suppose in your case it would be to override the name label? In which case when launching the container change the env: |
Exactly, it would be easier to re-use the traefik label than recreate all of them
…________________________________
From: Thomas Nairn ***@***.***>
Sent: Wednesday, June 16, 2021 1:14:29 PM
To: Inlustra/auto-docker-dash ***@***.***>
Cc: Jaune ***@***.***>; Author ***@***.***>
Subject: Re: [Inlustra/auto-docker-dash] Possibility to use traefik label (#4)
Actually all of the labels required are configurable through environment variables already! (Though I haven't tested that side of it just yet)
export const environment = () => ({
nameLabel: process.env.DOCKER_DASH_NAME_LABEL ?? "dockerDash.name",
categoryLabel:
process.env.DOCKER_DASH_CATEGORY_LABEL ?? "dockerDash.category",
iconLabel: process.env.DOCKER_DASH_ICON_LABEL ?? "dockerDash.icon",
linkLabel: process.env.DOCKER_DASH_LINK_LABEL ?? "dockerDash.link",
parentsLabel: process.env.DOCKER_DASH_PARENTS_LABEL ?? "dockerDash.parents",
dockerSocket: process.env.DOCKER_SOCKET ?? "/var/run/docker.sock",
dockerHost: process.env.DOCKER_HOST,
dockerPort: process.env.DOCKER_PORT,
dockerProtocol: process.env.DOCKER_PROTOCOL as
| "https"
| "http"
| "ssh"
| undefined,
dockerVersion: process.env.DOCKER_VERSION,
fileStoragePath: process.env.DOCKER_DASH_FILE_STORAGE_PATH,
});
Feel free to launch the container with whatever you'd like the labels to be, I suppose in your case it would be to override the name label?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#4 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACQ46JC3BVEHCBJCSO5VBPLTTDLXLANCNFSM46Z4EBZQ>.
|
That's already implemented, can you give it a try? |
As soon as I come back from work !
…________________________________
From: Thomas Nairn ***@***.***>
Sent: Wednesday, June 16, 2021 3:10:36 PM
To: Inlustra/auto-docker-dash ***@***.***>
Cc: Jaune ***@***.***>; Author ***@***.***>
Subject: Re: [Inlustra/auto-docker-dash] Possibility to use traefik label (#4)
That's already implemented, can you give it a try?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#4 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACQ46JGRXX7LSSJTJ2VIGNLTTDZKZANCNFSM46Z4EBZQ>.
|
It's worth mentioning that as of v2, these options are no longer configured using environment variables.
|
I'm going to close this, as the possibility to do such a thing does exist, if you have any other issues with this functionality, I'll re-open |
It would be pretty awesome to be able to use the traefik label. Do you think this is something possible without too much hassle ?
The text was updated successfully, but these errors were encountered: