mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(traefik): increase migration wait time for service removal
Adjust sleep/timeout duration in Traefik migration scripts to ensure proper service removal and container initialization
This commit is contained in:
@@ -546,7 +546,7 @@ export const createTraefikInstance = () => {
|
|||||||
if docker service inspect dokploy-traefik > /dev/null 2>&1; then
|
if docker service inspect dokploy-traefik > /dev/null 2>&1; then
|
||||||
echo "Migrating Traefik to Standalone..."
|
echo "Migrating Traefik to Standalone..."
|
||||||
docker service rm dokploy-traefik
|
docker service rm dokploy-traefik
|
||||||
sleep 7
|
sleep 8
|
||||||
echo "Traefik migrated to Standalone ✅"
|
echo "Traefik migrated to Standalone ✅"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ export const initializeTraefik = async ({
|
|||||||
try {
|
try {
|
||||||
const service = docker.getService("dokploy-traefik");
|
const service = docker.getService("dokploy-traefik");
|
||||||
await service?.remove({ force: true });
|
await service?.remove({ force: true });
|
||||||
await new Promise((resolve) => setTimeout(resolve, 5000));
|
await new Promise((resolve) => setTimeout(resolve, 9000));
|
||||||
} catch (_) {}
|
} catch (_) {}
|
||||||
|
|
||||||
const container = docker.getContainer(containerName);
|
const container = docker.getContainer(containerName);
|
||||||
|
|||||||
Reference in New Issue
Block a user