Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.amplication.com/llms.txt

Use this file to discover all available pages before exploring further.

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;
}