mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-20 06:35:22 +02:00
feat(docker): update generateConfigContainer to accept Partial<ApplicationNested> and enhance mount checks
This commit is contained in:
@@ -348,7 +348,9 @@ export const calculateResources = ({
|
||||
};
|
||||
};
|
||||
|
||||
export const generateConfigContainer = (application: ApplicationNested) => {
|
||||
export const generateConfigContainer = (
|
||||
application: Partial<ApplicationNested>,
|
||||
) => {
|
||||
const {
|
||||
healthCheckSwarm,
|
||||
restartPolicySwarm,
|
||||
@@ -362,7 +364,7 @@ export const generateConfigContainer = (application: ApplicationNested) => {
|
||||
networkSwarm,
|
||||
} = application;
|
||||
|
||||
const haveMounts = mounts.length > 0;
|
||||
const haveMounts = mounts && mounts.length > 0;
|
||||
|
||||
return {
|
||||
...(healthCheckSwarm && {
|
||||
|
||||
Reference in New Issue
Block a user