Editing a stack allows you to make changes to the configuration and redeploy those changes. To edit a stack, from the menu select Stacks, select the stack you want to edit, then select the Editor tab.
Here, you can edit the Compose file for the stack to suit your needs. With Docker Swarm, you can also make changes to environment variables for the stack, as well as prune services if you have made changes that remove some services from the stack.
Wen you have finished making changes, click Update the stack.