beforeCreateServerDockerCompose(
  context: dotnetTypes.DsgContext,
  eventParams: dotnet.CreateServerDockerComposeParams
) {
  const settings = getPluginSettings(context.pluginInstallations);

  eventParams.updateProperties.push(
    ...updateDockerComposeProperties(settings)
  );
  return eventParams;
}

Event Name

CreateServerDockerCompose

Event Parameters

fileContent
string
The current content of the Docker Compose file.
updateProperties
Array
An array of properties to update or add to the Docker Compose file. Each item is expected to be compatible with the structure of the Docker Compose YAML.
outputFileName
string
The name of the Docker Compose output file.
beforeCreateServerDockerCompose(
  context: dotnetTypes.DsgContext,
  eventParams: dotnet.CreateServerDockerComposeParams
) {
  const settings = getPluginSettings(context.pluginInstallations);

  eventParams.updateProperties.push(
    ...updateDockerComposeProperties(settings)
  );
  return eventParams;
}