|
<?xml version="1.0" encoding="utf-8"?>
|
|
<ApplicationManifest ApplicationTypeName="eShopOnServiceFabricType"
|
|
ApplicationTypeVersion="1.0.0"
|
|
xmlns="http://schemas.microsoft.com/2011/01/fabric"
|
|
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
<Parameters>
|
|
<Parameter Name="SqlServer_InstanceCount" DefaultValue="1" />
|
|
<Parameter Name="WebStatus_InstanceCount" DefaultValue="-1" />
|
|
<Parameter Name="WebSPA_InstanceCount" DefaultValue="-1" />
|
|
<Parameter Name="WebMVC_InstanceCount" DefaultValue="-1" />
|
|
<Parameter Name="OrderingApi_InstanceCount" DefaultValue="-1" />
|
|
<Parameter Name="IdentityApi_InstanceCount" DefaultValue="1" />
|
|
<Parameter Name="CatalogApi_InstanceCount" DefaultValue="-1" />
|
|
<Parameter Name="BasketApi_InstanceCount" DefaultValue="-1" />
|
|
</Parameters>
|
|
<!-- Import the ServiceManifest from the ServicePackage. The ServiceManifestName and ServiceManifestVersion
|
|
should match the Name and Version attributes of the ServiceManifest element defined in the
|
|
ServiceManifest.xml file. -->
|
|
<ServiceManifestImport>
|
|
<ServiceManifestRef ServiceManifestName="SqlServerPkg" ServiceManifestVersion="1.0.0" />
|
|
<ConfigOverrides />
|
|
<Policies>
|
|
<ContainerHostPolicies CodePackageRef="Code">
|
|
<PortBinding ContainerPort="1433" EndpointRef="SqlServerTypeEndpoint"/>
|
|
</ContainerHostPolicies>
|
|
</Policies>
|
|
</ServiceManifestImport>
|
|
<ServiceManifestImport>
|
|
<ServiceManifestRef ServiceManifestName="WebStatusPkg" ServiceManifestVersion="1.0.0" />
|
|
<ConfigOverrides />
|
|
<Policies>
|
|
<ContainerHostPolicies CodePackageRef="Code">
|
|
<PortBinding ContainerPort="80" EndpointRef="WebStatusTypeEndpoint"/>
|
|
</ContainerHostPolicies>
|
|
</Policies>
|
|
</ServiceManifestImport>
|
|
<ServiceManifestImport>
|
|
<ServiceManifestRef ServiceManifestName="WebSPAPkg" ServiceManifestVersion="1.0.0" />
|
|
<ConfigOverrides />
|
|
<Policies>
|
|
<ContainerHostPolicies CodePackageRef="Code">
|
|
<PortBinding ContainerPort="80" EndpointRef="WebSPATypeEndpoint"/>
|
|
</ContainerHostPolicies>
|
|
</Policies>
|
|
</ServiceManifestImport>
|
|
<ServiceManifestImport>
|
|
<ServiceManifestRef ServiceManifestName="WebMVCPkg" ServiceManifestVersion="1.0.0" />
|
|
<ConfigOverrides />
|
|
<Policies>
|
|
<ContainerHostPolicies CodePackageRef="Code">
|
|
<PortBinding ContainerPort="80" EndpointRef="WebMVCTypeEndpoint"/>
|
|
</ContainerHostPolicies>
|
|
</Policies>
|
|
</ServiceManifestImport>
|
|
<ServiceManifestImport>
|
|
<ServiceManifestRef ServiceManifestName="OrderingApiPkg" ServiceManifestVersion="1.0.0" />
|
|
<ConfigOverrides />
|
|
<Policies>
|
|
<ContainerHostPolicies CodePackageRef="Code">
|
|
<PortBinding ContainerPort="80" EndpointRef="OrderingApiTypeEndpoint"/>
|
|
</ContainerHostPolicies>
|
|
</Policies>
|
|
</ServiceManifestImport>
|
|
<ServiceManifestImport>
|
|
<ServiceManifestRef ServiceManifestName="IdentityApiPkg" ServiceManifestVersion="1.0.0" />
|
|
<ConfigOverrides />
|
|
<Policies>
|
|
<ContainerHostPolicies CodePackageRef="Code">
|
|
<PortBinding ContainerPort="80" EndpointRef="IdentityApiTypeEndpoint"/>
|
|
</ContainerHostPolicies>
|
|
</Policies>
|
|
</ServiceManifestImport>
|
|
<ServiceManifestImport>
|
|
<ServiceManifestRef ServiceManifestName="CatalogApiPkg" ServiceManifestVersion="1.0.0" />
|
|
<ConfigOverrides />
|
|
<Policies>
|
|
<ContainerHostPolicies CodePackageRef="Code">
|
|
<PortBinding ContainerPort="80" EndpointRef="CatalogApiTypeEndpoint"/>
|
|
</ContainerHostPolicies>
|
|
</Policies>
|
|
</ServiceManifestImport>
|
|
<ServiceManifestImport>
|
|
<ServiceManifestRef ServiceManifestName="BasketApiPkg" ServiceManifestVersion="1.0.0" />
|
|
<ConfigOverrides />
|
|
<Policies>
|
|
<ContainerHostPolicies CodePackageRef="Code">
|
|
<PortBinding ContainerPort="80" EndpointRef="BasketApiTypeEndpoint"/>
|
|
</ContainerHostPolicies>
|
|
</Policies>
|
|
</ServiceManifestImport>
|
|
<DefaultServices>
|
|
<!-- The section below creates instances of service types, when an instance of this
|
|
application type is created. You can also create one or more instances of service type using the
|
|
ServiceFabric PowerShell module.
|
|
|
|
The attribute ServiceTypeName below must match the name defined in the imported ServiceManifest.xml file. -->
|
|
<Service Name="SqlServer" ServiceDnsName="sqlserver.eshoponservicefabric" ServicePackageActivationMode="ExclusiveProcess">
|
|
<StatelessService ServiceTypeName="SqlServerType" InstanceCount="[SqlServer_InstanceCount]">
|
|
<SingletonPartition />
|
|
</StatelessService>
|
|
</Service>
|
|
<Service Name="WebStatus" ServiceDnsName="webstatus.eshoponservicefabric" ServicePackageActivationMode="ExclusiveProcess">
|
|
<StatelessService ServiceTypeName="WebStatusType" InstanceCount="[WebStatus_InstanceCount]">
|
|
<SingletonPartition />
|
|
</StatelessService>
|
|
</Service>
|
|
<Service Name="WebSPA" ServiceDnsName="webspa.eshoponservicefabric" ServicePackageActivationMode="ExclusiveProcess">
|
|
<StatelessService ServiceTypeName="WebSPAType" InstanceCount="[WebSPA_InstanceCount]">
|
|
<SingletonPartition />
|
|
</StatelessService>
|
|
</Service>
|
|
<Service Name="WebMVC" ServiceDnsName="webmvc.eshoponservicefabric" ServicePackageActivationMode="ExclusiveProcess">
|
|
<StatelessService ServiceTypeName="WebMVCType" InstanceCount="[WebMVC_InstanceCount]">
|
|
<SingletonPartition />
|
|
</StatelessService>
|
|
</Service>
|
|
<Service Name="OrderingApi" ServiceDnsName="orderingapi.eshoponservicefabric" ServicePackageActivationMode="ExclusiveProcess">
|
|
<StatelessService ServiceTypeName="OrderingApiType" InstanceCount="[OrderingApi_InstanceCount]">
|
|
<SingletonPartition />
|
|
</StatelessService>
|
|
</Service>
|
|
<Service Name="IdentityApi" ServiceDnsName="identityapi.eshoponservicefabric" ServicePackageActivationMode="ExclusiveProcess">
|
|
<StatelessService ServiceTypeName="IdentityApiType" InstanceCount="[IdentityApi_InstanceCount]">
|
|
<SingletonPartition />
|
|
</StatelessService>
|
|
</Service>
|
|
<Service Name="CatalogApi" ServiceDnsName="catalogapi.eshoponservicefabric" ServicePackageActivationMode="ExclusiveProcess">
|
|
<StatelessService ServiceTypeName="CatalogApiType" InstanceCount="[CatalogApi_InstanceCount]">
|
|
<SingletonPartition />
|
|
</StatelessService>
|
|
</Service>
|
|
<Service Name="BasketApi" ServiceDnsName="basketapi.eshoponservicefabric" ServicePackageActivationMode="ExclusiveProcess">
|
|
<StatelessService ServiceTypeName="BasketApiType" InstanceCount="[BasketApi_InstanceCount]">
|
|
<SingletonPartition />
|
|
</StatelessService>
|
|
</Service>
|
|
</DefaultServices>
|
|
</ApplicationManifest>
|