mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Merge pull request #1477 from Mautriz/canary
Allow traefik labels customization in docker-composes
This commit is contained in:
commit
f74d02381f
@ -238,9 +238,9 @@ export const addDomainToCompose = async (
|
|||||||
|
|
||||||
if (Array.isArray(labels)) {
|
if (Array.isArray(labels)) {
|
||||||
if (!labels.includes("traefik.enable=true")) {
|
if (!labels.includes("traefik.enable=true")) {
|
||||||
labels.push("traefik.enable=true");
|
labels.unshift("traefik.enable=true");
|
||||||
}
|
}
|
||||||
labels.push(...httpLabels);
|
labels.unshift(...httpLabels);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!compose.isolatedDeployment) {
|
if (!compose.isolatedDeployment) {
|
||||||
|
Loading…
Reference in New Issue
Block a user