Skip to content

Redeploy in swarm (1 replica) is not killing previous instance #1669

@yur0n

Description

@yur0n

To Reproduce

  1. Create app
  2. Choose registry and 1 replica so the app is added to swarm
  3. Deploy
  4. Redeploy using webhook

Current vs. Expected behavior

Following the steps from the previous section, I expect the service would shutdown and redeploy, but observe that another instance of the app is created each redeploy alongside previously deployed instance and Traefik is balancing between these instances

Provide environment information

Operating System: OS: Ubuntu 22
Dokploy version: 0.21.5
Deploying Node.js app

Which area(s) are affected? (Select all that apply)

Docker, Traefik, Application

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

Same server where Dokploy is installed

Additional context

Changing the replica number to 5, redeploying, changing the replica number to 1, redeploying - fixes the issue until next redeploy

Will you send a PR to fix it?

No

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions