mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-28 02:25:23 +02:00
feat: Add stop_grace_period to swarm settings
This commit is contained in:
@@ -360,6 +360,7 @@ export const generateConfigContainer = (application: ApplicationNested) => {
|
||||
replicas,
|
||||
mounts,
|
||||
networkSwarm,
|
||||
stopGracePeriodSwarm,
|
||||
} = application;
|
||||
|
||||
const haveMounts = mounts.length > 0;
|
||||
@@ -410,6 +411,9 @@ export const generateConfigContainer = (application: ApplicationNested) => {
|
||||
Order: "start-first",
|
||||
},
|
||||
}),
|
||||
...(stopGracePeriodSwarm && {
|
||||
StopGracePeriod: parseInt(stopGracePeriodSwarm, 10),
|
||||
}),
|
||||
...(networkSwarm
|
||||
? {
|
||||
Networks: networkSwarm,
|
||||
|
||||
Reference in New Issue
Block a user