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:
Mauricio Siu
2025-03-10 01:54:25 -06:00
parent e63eed57dd
commit fce22ec1d0
2 changed files with 2 additions and 2 deletions

View File

@@ -546,7 +546,7 @@ export const createTraefikInstance = () => {
if docker service inspect dokploy-traefik > /dev/null 2>&1; then
echo "Migrating Traefik to Standalone..."
docker service rm dokploy-traefik
sleep 7
sleep 8
echo "Traefik migrated to Standalone ✅"
fi

View File

@@ -91,7 +91,7 @@ export const initializeTraefik = async ({
try {
const service = docker.getService("dokploy-traefik");
await service?.remove({ force: true });
await new Promise((resolve) => setTimeout(resolve, 5000));
await new Promise((resolve) => setTimeout(resolve, 9000));
} catch (_) {}
const container = docker.getContainer(containerName);