@@ -15,6 +15,9 @@ services:
1515 traefik :
1616 volumes :
1717 - ./docker/traefik:C:/etc/traefik
18+ depends_on :
19+ hrz :
20+ condition : service_healthy
1821
1922 mssql :
2023 image : ${REGISTRY}${COMPOSE_PROJECT_NAME}-xp0-mssql:${VERSION:-latest}
@@ -24,6 +27,7 @@ services:
2427 BASE_IMAGE : ${SITECORE_DOCKER_REGISTRY}sitecore-xp0-mssql:${SITECORE_VERSION}
2528 SPE_IMAGE : ${SITECORE_MODULE_REGISTRY}spe-assets:${SPE_VERSION}
2629 SXA_IMAGE : ${SITECORE_MODULE_REGISTRY}sxa-xp1-assets:${SXA_VERSION}
30+ HORIZON_RESOURCES_IMAGE : ${SITECORE_MODULE_REGISTRY}horizon-integration-xp0-assets:${HORIZON_ASSET_VERSION}
2731 mem_limit : 2GB
2832 volumes :
2933 - ${LOCAL_DATA_PATH}\mssql:c:\data
@@ -48,7 +52,8 @@ services:
4852 context : ./docker/build/id
4953 args :
5054 BASE_IMAGE : ${SITECORE_DOCKER_REGISTRY}sitecore-id:${SITECORE_VERSION}
51-
55+ environment :
56+ Sitecore_Sitecore__IdentityServer__Clients__DefaultClient__AllowedCorsOrigins__AllowedCorsOriginsGroup2 : https://${HRZ_HOST}
5257 cm :
5358 image : ${REGISTRY}${COMPOSE_PROJECT_NAME}-xp0-cm:${VERSION:-latest}
5459 build :
@@ -59,13 +64,15 @@ services:
5964 SXA_IMAGE : ${SITECORE_MODULE_REGISTRY}sxa-xp1-assets:${SXA_VERSION}
6065 TOOLING_IMAGE : ${SITECORE_TOOLS_REGISTRY}sitecore-docker-tools-assets:${TOOLS_VERSION}
6166 SOLUTION_IMAGE : ${REGISTRY}${COMPOSE_PROJECT_NAME}-solution:${VERSION:-latest}
67+ HORIZON_RESOURCES_IMAGE : ${SITECORE_MODULE_REGISTRY}horizon-integration-xp0-assets:${HORIZON_ASSET_VERSION}
6268 depends_on :
6369 - solution
6470 volumes :
6571 - ${LOCAL_DEPLOY_PATH}\website:C:\deploy
6672 - ${LOCAL_DATA_PATH}\cm:C:\inetpub\wwwroot\App_Data\logs
6773 environment :
6874 SITECORE_DEVELOPMENT_PATCHES : CustomErrorsOff
75+ Sitecore_Horizon_ClientHost : https://${HRZ_HOST}
6976 entrypoint : powershell -Command "& C:\tools\entrypoints\iis\Development.ps1"
7077
7178 xconnect :
@@ -110,4 +117,37 @@ services:
110117 BASE_IMAGE : ${SITECORE_DOCKER_REGISTRY}sitecore-xp0-cortexprocessingworker:${SITECORE_VERSION}
111118 SOLUTION_IMAGE : ${REGISTRY}${COMPOSE_PROJECT_NAME}-solution:${VERSION:-latest}
112119 depends_on :
113- - solution
120+ - solution
121+ hrz :
122+ image : ${SITECORE_MODULE_REGISTRY}sitecore-horizon:${HORIZON_VERSION}
123+ isolation : ${ISOLATION}
124+ healthcheck :
125+ test : ["CMD", "curl", "-f", "http://localhost/healthz/live"]
126+ timeout : 300s
127+ environment :
128+ Sitecore_License : ${SITECORE_LICENSE}
129+ Sitecore_FederatedUI__HostBaseUrl : http://hrz
130+ Sitecore_SitecorePlatform__ContentManagementUrl : https://${CM_HOST}
131+ Sitecore_SitecorePlatform__ContentManagementInternalUrl : http://cm
132+ Sitecore_Sitecore__Authentication__OpenIdConnectOptions__RequireHttpsMetadata : ' false'
133+ Sitecore_Sitecore__Authentication__OpenIdConnectOptions__Authority : https://${ID_HOST}
134+ Sitecore_Sitecore__Authentication__OpenIdConnectOptions__CallbackAuthority : https://${HRZ_HOST}
135+ Sitecore_Sitecore__Authentication__OpenIdConnectOptions__InternalAuthority : http://id
136+ Sitecore_Sitecore__Authentication__BearerAuthenticationOptions__Authority : https://${ID_HOST}
137+ Sitecore_Sitecore__Authentication__BearerAuthenticationOptions__InternalAuthority : http://id
138+ Sitecore_Sitecore__Authentication__BearerAuthenticationOptions__RequireHttpsMetadata : ' false'
139+ Sitecore_Plugins__Filters__ExperienceAccelerator : +SXA
140+ depends_on :
141+ id :
142+ condition : service_started
143+ cm :
144+ condition : service_started
145+ labels :
146+ - " traefik.enable=true"
147+ - " traefik.http.middlewares.force-STS-Header.headers.forceSTSHeader=true"
148+ - " traefik.http.middlewares.force-STS-Header.headers.stsSeconds=31536000"
149+ - " traefik.http.routers.sh-secure.entrypoints=websecure"
150+ - " traefik.http.routers.sh-secure.rule=Host(`${HRZ_HOST}`)"
151+ - " traefik.http.routers.sh-secure.tls=true"
152+ - " traefik.http.routers.sh-secure.middlewares=force-STS-Header"
153+ - " traefik.http.services.sh.loadbalancer.server.port=80"
0 commit comments