chore: Remove unnecessary content from Docker Compose file

This commit is contained in:
Andras Bacsai 2024-05-23 08:50:15 +02:00
parent 27eef36677
commit 54e1e7684d

View File

@ -1233,6 +1233,7 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal
'volumes' => $topLevelVolumes->toArray(),
'networks' => $topLevelNetworks->toArray(),
];
$yaml = data_forget($yaml, 'services.*.volumes.*.content');
$resource->docker_compose_raw = Yaml::dump($yaml, 10, 2);
$resource->docker_compose = Yaml::dump($finalServices, 10, 2);
$resource->save();