fix(postgres): set default StopGracePeriod to 30 seconds if not provided

This commit is contained in:
Othman Haba (ง'̀-'́)ง
2026-02-06 03:37:34 +02:00
parent af87614cb0
commit 67899c762c

View File

@@ -73,8 +73,7 @@ export const buildPostgres = async (postgres: PostgresNested) => {
Image: dockerImage,
Env: envVariables,
Mounts: [...volumesMount, ...bindsMount, ...filesMount],
...(StopGracePeriod !== null &&
StopGracePeriod !== undefined && { StopGracePeriod }),
StopGracePeriod: StopGracePeriod ?? 30_000_000_000,
...(command && {
Command: command.split(" "),
}),