mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-19 10:25:20 +00:00
@@ -251,14 +251,18 @@ export const addDomainToCompose = async (
|
|||||||
}
|
}
|
||||||
labels.unshift(...httpLabels);
|
labels.unshift(...httpLabels);
|
||||||
if (!compose.isolatedDeployment) {
|
if (!compose.isolatedDeployment) {
|
||||||
|
if (compose.composeType === "docker-compose") {
|
||||||
if (!labels.includes("traefik.docker.network=dokploy-network")) {
|
if (!labels.includes("traefik.docker.network=dokploy-network")) {
|
||||||
labels.unshift("traefik.docker.network=dokploy-network");
|
labels.unshift("traefik.docker.network=dokploy-network");
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// Stack Case
|
||||||
if (!labels.includes("traefik.swarm.network=dokploy-network")) {
|
if (!labels.includes("traefik.swarm.network=dokploy-network")) {
|
||||||
labels.unshift("traefik.swarm.network=dokploy-network");
|
labels.unshift("traefik.swarm.network=dokploy-network");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!compose.isolatedDeployment) {
|
if (!compose.isolatedDeployment) {
|
||||||
// Add the dokploy-network to the service
|
// Add the dokploy-network to the service
|
||||||
|
|||||||
Reference in New Issue
Block a user