-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.override.yml
194 lines (187 loc) · 8.55 KB
/
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
services:
traefik:
isolation: ${TRAEFIK_ISOLATION}
image: traefik:v2.9.6-windowsservercore-1809
command:
- "--ping"
- "--api.insecure=true"
- "--providers.docker.endpoint=npipe:////./pipe/docker_engine"
- "--providers.docker.exposedByDefault=false"
- "--providers.file.directory=C:/etc/traefik/config/dynamic"
- "--entryPoints.websecure.address=:443"
- "--entryPoints.websecure.forwardedHeaders.insecure"
ports:
- "443:443"
- "8079:8080"
healthcheck:
test: ["CMD", "traefik", "healthcheck", "--ping"]
volumes:
- source: \\.\pipe\docker_engine
target: \\.\pipe\docker_engine
type: npipe
- ./docker/traefik:C:/etc/traefik
depends_on:
cm:
condition: service_started
id:
condition: service_started
mssql:
isolation: ${DEFAULT_ISOLATION}
image: ${SITECORE_DOCKER_REGISTRY}nonproduction/mssql-developer:${SQL_VERSION}
environment:
SA_PASSWORD: ${SQL_SA_PASSWORD}
ACCEPT_EULA: "Y"
volumes:
- type: bind
source: ${LOCAL_DATA_PATH}/mssql
target: C:/data
deploy:
resources:
limits:
cpus: "2.0"
memory: 4GB
mssql-init:
isolation: ${DEFAULT_ISOLATION}
environment:
SQL_SERVER: ${SQL_SERVER}
SQL_ADMIN_LOGIN: ${SQL_SA_LOGIN}
SQL_ADMIN_PASSWORD: ${SQL_SA_PASSWORD}
SQL_DATABASE_PREFIX: ${SQL_DATABASE_PREFIX}
SITECORE_ADMIN_PASSWORD: ${SITECORE_ADMIN_PASSWORD}
POST_DEPLOYMENT_WAIT_PERIOD: 300
healthcheck:
test:
[
"CMD",
"powershell",
"-command",
"if ([System.Environment]::GetEnvironmentVariable('DatabasesDeploymentStatus', 'Machine') -eq 'Complete') { exit 0 } else { exit 1}",
]
start_period: 300s
interval: 5s
depends_on:
mssql:
condition: service_healthy
solr:
isolation: ${DEFAULT_ISOLATION}
image: ${SITECORE_DOCKER_REGISTRY}nonproduction/solr:${SOLR_VERSION}
volumes:
- type: bind
source: ${LOCAL_DATA_PATH}/solr
target: C:/data
environment:
SOLR_MODE: solrcloud
SOLR_LOG_LEVEL: WARN
healthcheck:
test:
[
"CMD",
"powershell",
"-command",
"try { $$statusCode = (iwr http://solr:8983/solr/admin/cores?action=STATUS -UseBasicParsing).StatusCode; if ($$statusCode -eq 200) { exit 0 } else { exit 1} } catch { exit 1 }",
]
solr-init:
image: ${SITECORE_DOCKER_REGISTRY}sitecore-xm1-solr-init:${SITECORE_VERSION}
environment:
SITECORE_SOLR_CONNECTION_STRING: http://solr:8983/solr
SOLR_CORE_PREFIX_NAME: ${SOLR_CORE_PREFIX_NAME}
depends_on:
solr:
condition: service_healthy
id:
isolation: ${DEFAULT_ISOLATION}
volumes:
- ${HOST_LICENSE_FOLDER}:C:/license
environment:
Sitecore_Sitecore__IdentityServer__SitecoreMemberShipOptions__ConnectionString: Data Source=${SQL_SERVER};Initial Catalog=${SQL_DATABASE_PREFIX}.Core;User ID=${SQL_SA_LOGIN};Password=${SQL_SA_PASSWORD}
Sitecore_Sitecore__IdentityServer__AccountOptions__PasswordRecoveryUrl: https://${CM_HOST}/sitecore/login?rc=1
Sitecore_Sitecore__IdentityServer__Clients__PasswordClient__ClientSecrets__ClientSecret1: ${SITECORE_IDSECRET}
Sitecore_Sitecore__IdentityServer__Clients__CliServerClient__ClientSecrets__ClientSecret1: ${SITECORE_IDSECRET}
Sitecore_Sitecore__IdentityServer__Clients__NewsMixerClient__ClientSecrets__ClientSecret1: ${SITECORE_IDSECRET}
Sitecore_Sitecore__IdentityServer__Clients__DefaultClient__AllowedCorsOrigins__AllowedCorsOriginsGroup1: https://${CM_HOST}
Sitecore_Sitecore__IdentityServer__CertificateRawData: ${SITECORE_ID_CERTIFICATE}
Sitecore_Sitecore__IdentityServer__PublicOrigin: https://${ID_HOST}
Sitecore_Sitecore__IdentityServer__CertificateRawDataPassword: ${SITECORE_ID_CERTIFICATE_PASSWORD}
SITECORE_LICENSE_LOCATION: C:\license\license.xml
Sitecore_License: ${SITECORE_LICENSE}
healthcheck:
test: ["CMD", "pwsh", "-command", "C:/Healthchecks/Healthcheck.ps1"]
timeout: 300s
depends_on:
mssql-init:
condition: service_healthy
labels:
- "traefik.enable=true"
- "traefik.http.routers.id-secure.entrypoints=websecure"
- "traefik.http.routers.id-secure.rule=Host(`${ID_HOST}`)"
- "traefik.http.routers.id-secure.tls=true"
cm:
isolation: ${DEFAULT_ISOLATION}
volumes:
- ${LOCAL_DEPLOY_PATH}/platform:C:/deploy
- ${LOCAL_DATA_PATH}/cm/logs:C:/inetpub/wwwroot/App_Data/logs
- ${HOST_LICENSE_FOLDER}:C:/license
entrypoint: powershell.exe -Command "& C:/tools/entrypoints/iis/Development.ps1"
depends_on:
mssql-init:
condition: service_healthy
solr-init:
condition: service_started
id:
condition: service_started
environment:
Sitecore_AppSettings_env:define: "development"
Sitecore_AppSettings_instanceNameMode:define: default
Sitecore_ConnectionStrings_Core: Data Source=${SQL_SERVER};Initial Catalog=${SQL_DATABASE_PREFIX}.Core;User ID=${SQL_SA_LOGIN};Password=${SQL_SA_PASSWORD}
Sitecore_ConnectionStrings_Security: Data Source=${SQL_SERVER};Initial Catalog=${SQL_DATABASE_PREFIX}.Core;User ID=${SQL_SA_LOGIN};Password=${SQL_SA_PASSWORD}
Sitecore_ConnectionStrings_Master: Data Source=${SQL_SERVER};Initial Catalog=${SQL_DATABASE_PREFIX}.Master;User ID=${SQL_SA_LOGIN};Password=${SQL_SA_PASSWORD}
Sitecore_ConnectionStrings_Web: Data Source=${SQL_SERVER};Initial Catalog=${SQL_DATABASE_PREFIX}.Web;User ID=${SQL_SA_LOGIN};Password=${SQL_SA_PASSWORD}
Sitecore_ConnectionStrings_ExperienceForms: Data Source=${SQL_SERVER};Initial Catalog=${SQL_DATABASE_PREFIX}.ExperienceForms;User ID=${SQL_SA_LOGIN};Password=${SQL_SA_PASSWORD}
Sitecore_ConnectionStrings_Solr.Search: http://solr:8983/solr;solrCloud=true
Sitecore_ConnectionStrings_Sitecoreidentity.secret: ${SITECORE_IDSECRET}
Sitecore_ConnectionStrings_experienceedge: url=https://one-sc-production.eu.auth0.com/oauth/token;client_id=QZ47qCtkF4IPSk5e8T9hMwukQns5ij4a;client_secret=oFx7AyBhsJ1d8j9dnThDZp2tRrxi9-evZM6osKWBIu6Up7zvgbPo1RLXvxFKaM9t;audience=https://delivery.sitecore.cloud/hnhinternational-ea839f44;delivery_endpoint=https://weu-e1-aks-01-publishing.sitecorecloud.io;cdn_uri=https://edge.sitecorecloud.io;media_prefix=hnhinternational-ea839f44/media
Sitecore_AppSettings_Telerik.AsyncUpload.ConfigurationEncryptionKey: ${TELERIK_ENCRYPTION_KEY}
Sitecore_AppSettings_Telerik.Upload.ConfigurationHashKey: ${TELERIK_ENCRYPTION_KEY}
Sitecore_AppSettings_Telerik.Web.UI.DialogParametersEncryptionKey: ${TELERIK_ENCRYPTION_KEY}
SITECORE_LICENSE_LOCATION: C:\license\license.xml
CM_HOST: ${CM_HOST}
SITECORE_DEVELOPMENT_PATCHES: DevEnvOn,CustomErrorsOff,HttpErrorsDetailed,DebugOn,DiagnosticsOff,InitMessagesOff,RobotDetectionOff
Sitecore_AppSettings_exmEnabled:define: "no"
Sitecore_License: ${SITECORE_LICENSE}
Sitecore_GraphQL_Enabled: ${SITECORE_GRAPHQL_ENABLED}
Sitecore_GraphQL_ExposePlayground: ${SITECORE_GRAPHQL_EXPOSEPLAYGROUND}
Sitecore_GraphQL_UploadMediaOptions_EncryptionKey: ${SITECORE_GRAPHQL_UPLOADMEDIAOPTIONS_ENCRYPTIONKEY}
Sitecore_Identity_Server_Authority: https://${ID_HOST}
Sitecore_Identity_Server_InternalAuthority: http://id
Sitecore_Identity_Server_CallbackAuthority: https://${CM_HOST}
Sitecore_Identity_Server_Require_Https: "false"
SOLR_CORE_PREFIX_NAME: ${SOLR_CORE_PREFIX_NAME}
MEDIA_REQUEST_PROTECTION_SHARED_SECRET: ${MEDIA_REQUEST_PROTECTION_SHARED_SECRET}
LOG_LEVEL_VALUE: ${LOG_LEVEL_VALUE}
deploy:
resources:
limits:
cpus: "2.0"
memory: 4GB
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.cm-secure.entrypoints=websecure"
- "traefik.http.routers.cm-secure.rule=Host(`${CM_HOST}`)"
- "traefik.http.routers.cm-secure.tls=true"
- "traefik.http.routers.cm-secure.middlewares=force-STS-Header"
news-mixer:
depends_on:
cm:
condition: service_started
id:
condition: service_healthy
volumes:
- ./out:c:\out
environment:
OPENAI_APIKEY: ${OPENAI_APIKEY}
OUTPUT_DIR: c:\out\feeds
CACHE_DIR: c:\out\cache
SITECORE_GRAPHQL_ENDPOINT_URL: http://cm/sitecore/api/graph/edge/
SITECORE_ID_CONNECT_TOKEN_URL: http://id/connect/token