[Fixed] Docker compose recreating containers for no reason

You had a swarm stack called dokploy deployed. The names of the service tasks (~the created swarm service container) match <stack name>.<service name>.<task slot>.<task id>. Of course, the swarm scheduler will reconcile the current state and do whatever is necessary to reach the desired state.

You could have just execute docker stack rm dokploy to get rid of the swarm stack.

You also seem to have a compose project deployed, its container match <project name>-<service name>-<replica number>.

1 Like