The docker-compose file below defines one single service called CM.
It states which image to use, which PowerShell script to run (entrypoint), maps port 44001 to port 80 and also defines some environment variables which can be used to override the connection strings at runtime.
By running the command:1docker-compose up
You should get the a version of the corporate website running.
Note: this depends on your having matching image and tag locally, also that you have allowed access to the required SQL and SOLR endpoints for your machine.
version: "2.4"
services:
cm:
image: sitecore-xp-9.3.0-custom-website-xm-cm:051020
entrypoint: powershell.exe -Command "& C:\\tools\\entrypoints\\iis\\Development.ps1"
ports:
- "44001:80"
environment:
SITECORE_LICENSE: ${SITECORE_LICENSE}
SITECORE_APPSETTINGS_ROLE:DEFINE: ContentManagement
SITECORE_CONNECTIONSTRINGS_MASTER: ${Master}
SITECORE_CONNECTIONSTRINGS_CORE: ${Core}
SITECORE_CONNECTIONSTRINGS_SECURITY: ${Security}
SITECORE_CONNECTIONSTRINGS_WEB: ${Web}
SITECORE_CONNECTIONSTRINGS_EXPERIENCEFORMS: ${Forms}
SITECORE_CONNECTIONSTRINGS_REPORTING: ${Reporting}
SITECORE_CONNECTIONSTRINGS_SOLR.SEARCH: ${Solr}
ENTRYPOINT_STDOUT_IIS_ACCESS_LOG_ENABLED: 'true'
ENTRYPOINT_STDOUT_IIS_ERROR_LOG_ENABLED: 'true'
ENTRYPOINT_STDOUT_SITECORE_LOG_ENABLED: 'true'
Sitecore_License: ${SITECORE_LICENSE}