Install Multiple Sitecore Commerce 10 Instances on Single Machine

Hi Folks,

Sometime we need to have multiple instances of Sitecore on single machine if we are working on different projects, it is quite easy to have in case of Sitecore but in case Sitecore Commerce we need to make some changes in our Sitecore Commerce Installation Powershell scripts to make this happen as Sitecore Commerce has different different roles with some different port number like below –

  1. CommerAuthoring uses port number 5000
  2. CommerceMinion uses port number 5010
  3. CommerceOps uses port number 5015
  4. CommerceShops uses port number 5005
  5. BizFix uses port number 4200
  6. Identity Server uses port number 5050

So if we install Sitecore Commerce without any changes on our machine first time then by default commerce installation script uses above port numbers.

So now to install multiple Sitecore Commerce instances on a single machine we need to make some changes.

Follow this blog by Sandeep Pote to install Sitecore Commerce 10. In this blog post after following steps till #16, open Deploy-Sitecore-Commerce.ps1 again and do following changes –

  1. Change $SiteHostHeaderName value to sxa.storefront.com to something else like sxa10.storefront.com (if your previous instance name is sxa.storefront.com)
  2. Change $CommerceServicesDbName value to sc10_SitecoreCommerce_SharedEnvironments (again if your previous DB name is SitecoreCommerce_SharedEnvironments)
  3. Change $CommerceServicesGlobalDbName value to sc10_SitecoreCommerce_Global (again if your previous DB name is SitecoreCommerce_Global)
  4. Change $CommerceOpsServicesPort value from 5015 to any port number like 5016
  5. Change $CommerceShopsServicesPort value from 5005 to any port number like 5006
  6. Change $CommerceAuthoringServicesPort value from 5000 to any port number like 5001
  7. Change $CommerceMinionsServicesPort value from 5010 to any port number like 5011
  8. Change $BizFxSiteName value from SitecoreBizFx to something else like SitecoreBizFx10 (if your previous instance name is SitecoreBizFx)
  9. Change $BizFxPort value from 4200 to any port number like 4201

See below screenshot, I have 2 instances on my machine –

That’s it, this is how you can install multiple Sitecore Commerce 10 instances on single machine.

Happy Coding 🙂

#sitecore #sitecorecommerce #developers

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s