mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-11 14:35:17 +00:00
Merge pull request #3607 from OthmanHaba/canary
fix(postgres): add default StopGracePeriod to prevent WAL corruption
This commit is contained in:
@@ -74,8 +74,7 @@ export const buildPostgres = async (postgres: PostgresNested) => {
|
|||||||
Image: dockerImage,
|
Image: dockerImage,
|
||||||
Env: envVariables,
|
Env: envVariables,
|
||||||
Mounts: [...volumesMount, ...bindsMount, ...filesMount],
|
Mounts: [...volumesMount, ...bindsMount, ...filesMount],
|
||||||
...(StopGracePeriod !== null &&
|
StopGracePeriod: StopGracePeriod ?? 30_000_000_000,
|
||||||
StopGracePeriod !== undefined && { StopGracePeriod }),
|
|
||||||
...(command && {
|
...(command && {
|
||||||
Command: command.split(" "),
|
Command: command.split(" "),
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user