Merge pull request #1692 from ron-tayler/canary

Fixed network search in Traefik Labels for the service
This commit is contained in:
Mauricio Siu 2025-04-12 22:10:20 -06:00 committed by GitHub
commit 7d7f2b4b1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -249,6 +249,11 @@ export const addDomainToCompose = async (
labels.unshift("traefik.enable=true"); labels.unshift("traefik.enable=true");
} }
labels.unshift(...httpLabels); labels.unshift(...httpLabels);
if (!compose.isolatedDeployment) {
if (!labels.includes("traefik.docker.network=dokploy-network")) {
labels.unshift("traefik.docker.network=dokploy-network");
}
}
} }
if (!compose.isolatedDeployment) { if (!compose.isolatedDeployment) {