-
Notifications
You must be signed in to change notification settings - Fork 104
/
Copy pathdocker-compose.override.yml
233 lines (220 loc) · 9.25 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
services:
traefik:
volumes:
- ./data/traefik:C:/etc/traefik
depends_on:
cd:
condition: service_healthy
networks:
- demo
# Mount our SQL data folder
mssql:
mem_limit: 6GB
volumes:
- type: bind
source: .\data\mssql-data
target: c:\data
networks:
- demo
# Custom mssql init
mssql-init:
mem_limit: 6GB
image: ${REGISTRY}demo/lighthouse-xp0-mssql-init:${SITECORE_VERSION}-${WINDOWSSERVERCORE_VERSION}-${DEMO_VERSION}
environment:
SQL_SERVER: ${SQL_SERVER}
SQL_ADMIN_LOGIN: ${SQL_SA_LOGIN}
SQL_ADMIN_PASSWORD: ${SQL_SA_PASSWORD}
SQL_DATABASE_PREFIX: ${SQL_DATABASE_PREFIX}
SQL_CUSTOM_DATABASE_PREFIX_UPDATE_FROM: ${SQL_CUSTOM_DATABASE_PREFIX_UPDATE_FROM}
SITECORE_ADMIN_USERNAME: "sitecore\\superuser"
SITECORE_ADMIN_PASSWORD: ${SITECORE_ADMIN_PASSWORD}
SITECORE_USER_PASSWORD: ${SITECORE_ADMIN_PASSWORD}
EXM_BASE_URL: https://${CD_HOST}
POST_DEPLOYMENT_WAIT_PERIOD: 900
healthcheck:
test: ["CMD", "powershell", "-command", "if ([System.Environment]::GetEnvironmentVariable('DatabasesDeploymentStatus', 'Machine') -eq 'Complete') { exit 0 } else { exit 1}"]
start_period: 300s
interval: 30s
retries: 100
depends_on:
mssql:
condition: service_healthy
networks:
- demo
# Mount our Solr data folder and use our retagged Solr image.
# Some modules (like SXA) also require additions to the Solr image.
solr:
volumes:
- type: bind
source: .\data\solr-data
target: c:\data
networks:
- demo
# Mount our Solr data folder and use our retagged Solr image.
# Some modules (like SXA) also require additions to the Solr image.
solr-init:
image: ${REGISTRY}demo/lighthouse-xp0-solr-init:${SITECORE_VERSION}-${WINDOWSSERVERCORE_VERSION}-${DEMO_VERSION}
networks:
- demo
id:
image: ${REGISTRY}demo/lighthouse-id:${SITECORE_VERSION}-${WINDOWSSERVERCORE_VERSION}-${DEMO_VERSION}
volumes:
- ${HOST_LICENSE_FOLDER}:c:\license
environment:
SITECORE_LICENSE_LOCATION: c:\license\license.xml
Sitecore_Sitecore__IdentityServer__Clients__CredentialsClient__ClientSecrets__TenantService: ${SITECORE_CLIENT_SECRET}
ID_SERVER_DEMO_CLIENT_SECRET: ${ID_SERVER_DEMO_CLIENT_SECRET}
networks:
- demo
cm:
image: ${REGISTRY}demo/lighthouse-xp0-cm:${SITECORE_VERSION}-${WINDOWSSERVERCORE_VERSION}-${DEMO_VERSION}
entrypoint: powershell.exe -Command "& C:\\tools\\entrypoints\\iis\\Development.ps1 -WatchDirectoryParameters @{ Path = 'C:\\src'; Destination = 'C:\\inetpub\\wwwroot'; ExcludeFiles = @('C:\\src\\Web.config'); }"
mem_limit: 6G
environment:
SITECORE_LICENSE_LOCATION: c:\license\license.xml
SITECORE_APPSETTINGS_SXAXM:DEFINE: sxaxconnect
SITECORE_APPSETTINGS_ENV:DEFINE: Docker
SITECORE_APPSETTINGS_CONTENTHUB:DEFINE: Enabled
SITECORE_CONNECTIONSTRINGS_CMP.ContentHub: ${CMP_CONTENTHUB}
SITECORE_CONNECTIONSTRINGS_CMP.ServiceBusEntityPathIn: ${CMP_SERVICEBUSENTITYPATHIN}
SITECORE_CONNECTIONSTRINGS_CMP.ServiceBusSubscription: ${CMP_SERVICEBUSSUBSCRIPTION}
SITECORE_CONNECTIONSTRINGS_CMP.ServiceBusEntityPathOut: ${CMP_SERVICEBUSENTITYPATHOUT}
SITECORE_CONNECTIONSTRINGS_DAM.ContentHub: URI=${DAM_URL}
SITECORE_CONNECTIONSTRINGS_DAM.SearchPage: ${DAM_URL}/en-us/sitecore-dam-connect/approved-assets
SITECORE_CONNECTIONSTRINGS_Sitecore.Services.Token.SecurityKey: key=${SITECORE_SERVICES_TOKEN_SECURITYKEY}
EXM_RENDERER_URL: http://cm
HOST_CD: http://cd
OPENCALAIS_ACCESSTOKEN: ${OPENCALAIS_ACCESSTOKEN}
DEPENDENCY_INJECTION_IGNORED_ASSEMBLIES: ${DEPENDENCY_INJECTION_IGNORED_ASSEMBLIES}
volumes:
- ${HOST_LICENSE_FOLDER}:c:\license
- .\data\cm\src:C:\src
- .\data\cm\backup:c:\backup
depends_on:
id:
condition: service_healthy
xconnect:
condition: service_healthy
networks:
demo:
aliases:
- "${CM_HOST}"
xconnect:
image: ${REGISTRY}demo/lighthouse-xp0-xconnect:${SITECORE_VERSION}-${WINDOWSSERVERCORE_VERSION}-${DEMO_VERSION}
# TODO: Do we need a specific xConnect entrypoint like in 9.3?
entrypoint: powershell.exe -Command "& C:\\tools\\entrypoints\\iis\\Development.ps1 -WatchDirectoryParameters @{ Path = 'C:\\src'; Destination = 'C:\\inetpub\\wwwroot'; ExcludeFiles = @('Web.config'); }"
volumes:
- ${HOST_LICENSE_FOLDER}:c:\license
- .\data\xconnect\src:C:\src
environment:
SITECORE_LICENSE_LOCATION: c:\license
depends_on:
mssql-init:
condition: service_healthy
solr:
condition: service_healthy
networks:
- demo
xdbsearchworker:
image: ${REGISTRY}demo/lighthouse-xp0-xdbsearchworker:${SITECORE_VERSION}-${WINDOWSSERVERCORE_VERSION}-${DEMO_VERSION}
entrypoint: powershell.exe -Command "& C:\\tools\\entrypoints\\worker\\Development.ps1 -WatchDirectoryParameters @{ Path = 'C:\\src'; Destination = 'C:\\service'; }"
volumes:
- ${HOST_LICENSE_FOLDER}:c:\license
- .\data\indexworker\src:C:\src
environment:
SITECORE_LICENSE_LOCATION: c:\license
networks:
- demo
xdbautomationworker:
image: ${REGISTRY}demo/lighthouse-xp0-xdbautomationworker:${SITECORE_VERSION}-${WINDOWSSERVERCORE_VERSION}-${DEMO_VERSION}
volumes:
- ${HOST_LICENSE_FOLDER}:c:\license
environment:
SITECORE_LICENSE_LOCATION: c:\license
networks:
- demo
cd:
isolation: ${ISOLATION}
image: ${REGISTRY}demo/lighthouse-xp0-cd:${SITECORE_VERSION}-${WINDOWSSERVERCORE_VERSION}-${DEMO_VERSION}
entrypoint: powershell.exe -Command "& C:\\tools\\entrypoints\\iis\\Development.ps1 -WatchDirectoryParameters @{ Path = 'C:\\src'; Destination = 'C:\\inetpub\\wwwroot'; ExcludeFiles = @('Web.config'); }"
deploy:
replicas: ${CD_CONTAINERS_COUNT}
environment:
SITECORE_LICENSE_LOCATION: c:\license\license.xml
SITECORE_APPSETTINGS_SXAXM:DEFINE: sxaxconnect
SITECORE_APPSETTINGS_ENV:DEFINE: Docker
SOLR_CORE_PREFIX_NAME: ${SOLR_CORE_PREFIX_NAME}
Sitecore_ConnectionStrings_Security: Data Source=mssql;Initial Catalog=Sitecore.Core;User ID=sa;Password=${SQL_SA_PASSWORD}
Sitecore_ConnectionStrings_Web: Data Source=mssql;Initial Catalog=Sitecore.Web;User ID=sa;Password=${SQL_SA_PASSWORD}
Sitecore_ConnectionStrings_Messaging: Data Source=mssql;Initial Catalog=Sitecore.Messaging;User ID=sa;Password=${SQL_SA_PASSWORD}
Sitecore_ConnectionStrings_ExperienceForms: Data Source=mssql;Initial Catalog=Sitecore.ExperienceForms;User ID=sa;Password=${SQL_SA_PASSWORD}
Sitecore_ConnectionStrings_Exm.Master: Data Source=mssql;Initial Catalog=Sitecore.Exm.master;User ID=sa;Password=${SQL_SA_PASSWORD}
Sitecore_ConnectionStrings_Solr.Search: http://solr:8983/solr
Sitecore_ConnectionStrings_XConnect.Collection: http://xconnect
Sitecore_ConnectionStrings_Xdb.MarketingAutomation.Operations.Client: http://xconnect
Sitecore_ConnectionStrings_Xdb.MarketingAutomation.Reporting.Client: http://xconnect
Sitecore_ConnectionStrings_Xdb.ReferenceData.Client: http://xconnect
Sitecore_ConnectionStrings_Sitecore.Services.Token.SecurityKey: key=${SITECORE_SERVICES_TOKEN_SECURITYKEY}
EXM_RENDERER_URL: http://cm
DEPENDENCY_INJECTION_IGNORED_ASSEMBLIES: ${DEPENDENCY_INJECTION_IGNORED_ASSEMBLIES}
volumes:
- ${HOST_LICENSE_FOLDER}:c:\license
- .\data\cd\src:C:\src
- .\data\cd\backup:c:\backup
depends_on:
mssql-init:
condition: service_healthy
solr:
condition: service_healthy
xconnect:
condition: service_healthy
healthcheck:
test: ["CMD", "powershell", "ps"]
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.cd-secure.entrypoints=websecure"
- "traefik.http.routers.cd-secure.rule=Host(`${CD_HOST}`)"
- "traefik.http.routers.cd-secure.tls=true"
- "traefik.http.routers.cd-secure.middlewares=force-STS-Header"
networks:
demo:
aliases:
- "${CD_HOST}"
smtp:
image: rnwood/smtp4dev
isolation: ${SMTP_ISOLATION}
ports:
- "44025:25"
- "44026:80"
networks:
- demo
deploy:
replicas: ${SMTP_CONTAINERS_COUNT}
init:
healthcheck:
test: ["CMD", "powershell", "ps"]
image: ${REGISTRY}demo/lighthouse-init:${SITECORE_VERSION}-${WINDOWSSERVERCORE_VERSION}-${DEMO_VERSION}
isolation: ${ISOLATION}
environment:
ADMIN_PASSWORD: ${SITECORE_ADMIN_PASSWORD}
ADMIN_USER_NAME: "superuser"
HOST_CD: "http://cd"
HOST_CM: "http://cm"
HOST_ID: "http://id"
MARKETING_DEFINITIONS_APIKEY: ${MARKETING_DEFINITIONS_APIKEY}
SKIP_WARMUP_CD: ${SKIP_WARMUP_CD}
INIT_CONTEXT: Data Source=mssql;Initial Catalog=platform_init_ready;User ID=sa;Password=${SQL_SA_PASSWORD};TrustServerCertificate=Yes;
ID_SERVER_DEMO_CLIENT_SECRET: ${ID_SERVER_DEMO_CLIENT_SECRET}
depends_on:
mssql-init:
condition: service_healthy
cm:
condition: service_healthy
networks:
- demo
networks:
demo:
external: true
name: nat