Skip to main content

Create Server Docker Compose

Creates or updates the Docker Compose file for the .NET server.

Event Name

CreateServerDockerCompose

Event Params

export interface CreateServerDockerComposeParams extends EventParams {
fileContent: string;
updateProperties: { [key: string]: any }[];
outputFileName: string;
}

Example

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

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