-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.override.yml
154 lines (144 loc) · 6.4 KB
/
docker-compose.override.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
version: "2.4"
services:
traefik:
volumes:
- ./docker/traefik:C:/etc/traefik
depends_on:
hrz:
condition: service_healthy
mssql:
image: ${REGISTRY}${COMPOSE_PROJECT_NAME}-xp0-mssql:${VERSION:-latest}
build:
context: ./docker/build/mssql
args:
BASE_IMAGE: ${SITECORE_DOCKER_REGISTRY}sitecore-xp0-mssql:${SITECORE_VERSION}
SPE_IMAGE: ${SITECORE_MODULE_REGISTRY}spe-assets:${SPE_VERSION}
SXA_IMAGE: ${SITECORE_MODULE_REGISTRY}sxa-xp1-assets:${SXA_VERSION}
HORIZON_RESOURCES_IMAGE: ${SITECORE_MODULE_REGISTRY}horizon-integration-xp0-assets:${HORIZON_ASSET_VERSION}
COVEO_ASSET: ${REGISTRY}custom-coveo509713-assets:10.1.0-1809
COVEO_SXA_ASSET: ${REGISTRY}custom-coveo509713-sxa-assets:10.1.0-1809
mem_limit: 2GB
volumes:
- ${LOCAL_DATA_PATH}\mssql:c:\data
# Mount our Solr data folder
solr:
volumes:
- ${LOCAL_DATA_PATH}\solr:c:\data
# Some modules (like SXA) also require additions to the Solr image.
solr-init:
image: ${REGISTRY}${COMPOSE_PROJECT_NAME}-xp0-solr-init:${VERSION:-latest}
build:
context: ./docker/build/solr-init
args:
BASE_IMAGE: ${SITECORE_DOCKER_REGISTRY}sitecore-xp0-solr-init:${SITECORE_VERSION}
SXA_IMAGE: ${SITECORE_MODULE_REGISTRY}sxa-xp1-assets:${SXA_VERSION}
# coveo-init:
# image: ${REGISTRY}${COMPOSE_PROJECT_NAME}-coveo-init:509713-${SITECORE_VERSION}
# build:
# context: ./docker/build/coveo-init
# args:
# BASE_IMAGE: mcr.microsoft.com/powershell:nanoserver-1809
id:
image: ${REGISTRY}${COMPOSE_PROJECT_NAME}-id:${VERSION:-latest}
build:
context: ./docker/build/id
args:
BASE_IMAGE: ${SITECORE_DOCKER_REGISTRY}sitecore-id:${SITECORE_VERSION}
environment:
Sitecore_Sitecore__IdentityServer__Clients__DefaultClient__AllowedCorsOrigins__AllowedCorsOriginsGroup2: https://${HRZ_HOST}
cm:
image: ${REGISTRY}${COMPOSE_PROJECT_NAME}-xp0-cm:${VERSION:-latest}
build:
context: ./docker/build/cm
args:
BASE_IMAGE: ${SITECORE_DOCKER_REGISTRY}sitecore-xp0-cm:${SITECORE_VERSION}
SPE_IMAGE: ${SITECORE_MODULE_REGISTRY}spe-assets:${SPE_VERSION}
SXA_IMAGE: ${SITECORE_MODULE_REGISTRY}sxa-xp1-assets:${SXA_VERSION}
TOOLING_IMAGE: ${SITECORE_TOOLS_REGISTRY}sitecore-docker-tools-assets:${TOOLS_VERSION}
HORIZON_RESOURCES_IMAGE: ${SITECORE_MODULE_REGISTRY}horizon-integration-xp0-assets:${HORIZON_ASSET_VERSION}
COVEO_ASSET: ${REGISTRY}custom-coveo509713-assets:10.1.0-1809
COVEO_SXA_ASSET: ${REGISTRY}custom-coveo509713-sxa-assets:10.1.0-1809
COVEO_ACTIVATION_SCRIPT: ${COVEO_ACTIVATION_SCRIPT}
depends_on:
mssql:
condition: service_healthy
volumes:
- ${LOCAL_DEPLOY_PATH}\website:C:\deploy
- ${LOCAL_DATA_PATH}\cm:C:\inetpub\wwwroot\App_Data\logs
environment:
SITECORE_DEVELOPMENT_PATCHES: CustomErrorsOff
Sitecore_Horizon_ClientHost: https://${HRZ_HOST}
entrypoint: powershell -Command "& C:\tools\entrypoints\iis\Development.ps1"
xconnect:
image: ${REGISTRY}${COMPOSE_PROJECT_NAME}-xp0-xconnect:${VERSION:-latest}
build:
context: ./docker/build/xconnect
args:
BASE_IMAGE: ${SITECORE_DOCKER_REGISTRY}sitecore-xp0-xconnect:${SITECORE_VERSION}
TOOLING_IMAGE: ${SITECORE_TOOLS_REGISTRY}sitecore-docker-tools-assets:${TOOLS_VERSION}
depends_on:
mssql:
condition: service_healthy
volumes:
- ${LOCAL_DEPLOY_PATH}\xconnect:C:\deploy
entrypoint: powershell -Command "& C:\tools\entrypoints\iis\Development.ps1"
xdbsearchworker:
image: ${REGISTRY}${COMPOSE_PROJECT_NAME}-xp0-xdbsearchworker:${VERSION:-latest}
build:
context: ./docker/build/xdbsearchworker
args:
BASE_IMAGE: ${SITECORE_DOCKER_REGISTRY}sitecore-xp0-xdbsearchworker:${SITECORE_VERSION}
depends_on:
mssql:
condition: service_healthy
xdbautomationworker:
image: ${REGISTRY}${COMPOSE_PROJECT_NAME}-xp0-xdbautomationworker:${VERSION:-latest}
build:
context: ./docker/build/xdbautomationworker
args:
BASE_IMAGE: ${SITECORE_DOCKER_REGISTRY}sitecore-xp0-xdbautomationworker:${SITECORE_VERSION}
depends_on:
mssql:
condition: service_healthy
cortexprocessingworker:
image: ${REGISTRY}${COMPOSE_PROJECT_NAME}-xp0-cortexprocessingworker:${VERSION:-latest}
build:
context: ./docker/build/cortexprocessingworker
args:
BASE_IMAGE: ${SITECORE_DOCKER_REGISTRY}sitecore-xp0-cortexprocessingworker:${SITECORE_VERSION}
depends_on:
mssql:
condition: service_healthy
hrz:
image: ${SITECORE_MODULE_REGISTRY}sitecore-horizon:${HORIZON_VERSION}
isolation: ${ISOLATION}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/healthz/live"]
timeout: 300s
environment:
Sitecore_License: ${SITECORE_LICENSE}
Sitecore_FederatedUI__HostBaseUrl: http://hrz
Sitecore_SitecorePlatform__ContentManagementUrl: https://${CM_HOST}
Sitecore_SitecorePlatform__ContentManagementInternalUrl: http://cm
Sitecore_Sitecore__Authentication__OpenIdConnectOptions__RequireHttpsMetadata: 'false'
Sitecore_Sitecore__Authentication__OpenIdConnectOptions__Authority: https://${ID_HOST}
Sitecore_Sitecore__Authentication__OpenIdConnectOptions__CallbackAuthority: https://${HRZ_HOST}
Sitecore_Sitecore__Authentication__OpenIdConnectOptions__InternalAuthority: http://id
Sitecore_Sitecore__Authentication__BearerAuthenticationOptions__Authority: https://${ID_HOST}
Sitecore_Sitecore__Authentication__BearerAuthenticationOptions__InternalAuthority: http://id
Sitecore_Sitecore__Authentication__BearerAuthenticationOptions__RequireHttpsMetadata: 'false'
Sitecore_Plugins__Filters__ExperienceAccelerator: +SXA
depends_on:
id:
condition: service_started
cm:
condition: service_started
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.force-STS-Header.headers.forceSTSHeader=true"
- "traefik.http.middlewares.force-STS-Header.headers.stsSeconds=31536000"
- "traefik.http.routers.sh-secure.entrypoints=websecure"
- "traefik.http.routers.sh-secure.rule=Host(`${HRZ_HOST}`)"
- "traefik.http.routers.sh-secure.tls=true"
- "traefik.http.routers.sh-secure.middlewares=force-STS-Header"
- "traefik.http.services.sh.loadbalancer.server.port=80"