From 416de9879bcf42fc54071cfd7a6979fe0b119bda Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Thu, 1 Aug 2024 09:31:58 -0600 Subject: [PATCH] fix(swarm): remove restart policy #306 --- apps/dokploy/server/utils/docker/utils.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/dokploy/server/utils/docker/utils.ts b/apps/dokploy/server/utils/docker/utils.ts index 84628e2c4..e981aec03 100644 --- a/apps/dokploy/server/utils/docker/utils.ts +++ b/apps/dokploy/server/utils/docker/utils.ts @@ -242,12 +242,7 @@ export const generateConfigContainer = (application: ApplicationNested) => { ? { RestartPolicy: restartPolicySwarm, } - : { - // if no restartPolicySwarm provided use default - RestartPolicy: { - Condition: "on-failure", - }, - }), + : {}), ...(placementSwarm ? { Placement: placementSwarm,