There are certain cases where the dokploy-traefik container goes down and then one of the containers squats on the IP reservation

Abierto
#5,901 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
docker, docker-compose

Línea de trabajo

Start by tracing how Dokploy configures the Traefik container's static IP and the shared dokploy-network, then inspect the watchdog mentioned in the issue. Reproduce the address conflict when a Swarm task takes 10.0.1.32 and Traefik restarts. Done means Traefik recovers reliably when its reserved address is occupied; the issue names no source files or tests.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

needs-triage🔍
To Reproduce

Serious issue, needs to be fixed. Has happened twice now in 2 days - probably at the same time cause when I woke up it was in this condition.

dokploy-traefik has a static IP reservation (10.0.1.32) on dokploy-network. While Traefik was down, a Swarm task (maa-enterprises-supabase-j9odm6-api-gw-1) took .32. Every Traefik start then failed with attaching to network failed ... context deadline exceeded (could not allocate IP from IPAM: Address already in use). This state persists in Swarm's IPAM, so reboots/redeploys couldn't fix it.

Partly dokploy issue actually, it's a known Docker Swarm IPAM gap that Dokploy's design exposes. The Swarm allocator hands addresses to service tasks without reserving the static IP that the standalone dokploy-traefik container holds on the shared dokploy-network overlay, so any task churn while Traefik is down can squat .32 (Docker issue class: "Address already in use" on attachable overlays).

Where Dokploy is genuinely at fault: it pins Traefik to a static IP on the same pool its services allocate from, and has no recovery path when the address is taken reinstalling services never touches the allocator stat.

Cheap hardening on my side: give Traefik an IP outside the range Swarm churns through (e.g. .2/.3 at the bottom, or a dedicated subnet), or drop the static IP entirely — DNS name dokploy-traefik is what routing uses anyway. The watchdog that I've built online self heals this regardless but I really should not have to.

Current vs. Expected behavior

Traefic's iP should never be squatted upon by one of the other services

Provide environment information
Os- Debian GNU/Linux 13 (trixie) for x64
Dokploy - 0.31.0
Which area(s) are affected? (Select all that apply)

Traefik

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

No response

Will you send a PR to fix it?

Maybe, need help

Lenguaje dominante
TypeScript
Estrellas
38.8k
Forks
3.2k
Merge medio
1 d 10 h
PR fusionados (30 d)
110

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Dokploy/dokploy

Todos los issues de Dokploy/dokploy

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.