-
Notifications
You must be signed in to change notification settings - Fork 47
/
docker-compose.override.yml
174 lines (164 loc) · 7.02 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
services:
nodejs:
image: ${REGISTRY}${COMPOSE_PROJECT_NAME}-nodejs:${VERSION:-latest}
build:
context: ./docker/build/nodejs
args:
PARENT_IMAGE: ${NODEJS_PARENT_IMAGE}
NODEJS_VERSION: ${NODEJS_VERSION}
deploy:
replicas: 0
sugcon2024:
image: ${REGISTRY}${COMPOSE_PROJECT_NAME}-sugcon2024:${VERSION:-latest}
build:
context: ./docker/build/sugcon
target: ${BUILD_CONFIGURATION}
args:
PARENT_IMAGE: ${REGISTRY}${COMPOSE_PROJECT_NAME}-nodejs:${VERSION:-latest}
volumes:
- .\src\Project\Sugcon2024\Sugcon:C:\app
environment:
SITECORE_API_HOST: "http://cm"
NEXTJS_DIST_DIR: ".next-container"
PUBLIC_URL: "https://${SUGCON_EU_HOST}"
JSS_EDITING_SECRET: ${JSS_EDITING_SECRET}
SITECORE_API_KEY: "${SITECORE_API_KEY}"
FETCH_WITH: "GraphQL"
NEXT_PUBLIC_CDP_CLIENT_KEY: ${SUCGON_EU_CDP_CLIENT_KEY}
NEXT_PUBLIC_CDP_TARGET_URL: ${SUCGON_EU_CDP_TARGET_URL}
NEXT_PUBLIC_CDP_POINTOFSALE: ${SUCGON_EU_CDP_POINTOFSALE}
NODE_ENV: ${NODE_ENV}
depends_on:
- cm
- nodejs
labels:
- "traefik.enable=true"
- "traefik.http.routers.sugoneu-secure.entrypoints=websecure"
- "traefik.http.routers.sugoneu-secure.tls=true"
- "traefik.http.routers.sugoneu-secure.rule=Host(`${SUGCON_EU_HOST}`)"
- "traefik.http.routers.sugconanz-secure.entrypoints=websecure"
- "traefik.http.routers.sugconanz-secure.tls=true"
- "traefik.http.routers.sugconanz-secure.rule=Host(`${SUGCON_ANZ_HOST}`)"
- "traefik.http.routers.sugconindia-secure.entrypoints=websecure"
- "traefik.http.routers.sugconindia-secure.tls=true"
- "traefik.http.routers.sugconindia-secure.rule=Host(`${SUGCON_INDIA_HOST}`)"
- "traefik.http.routers.sugonna-secure.entrypoints=websecure"
- "traefik.http.routers.sugonna-secure.tls=true"
- "traefik.http.routers.sugonna-secure.rule=Host(`${SUGCON_NA_HOST}`)"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/healthz"]
interval: 60s
timeout: 30s
# The solution build image is added here so it can be referenced as a build dependency
# for the images which use its output. Setting "deploy.replicas: 0" means docker-compose will not
# include it in the running environment. See Dockerfile for more details.
solution:
image: ${REGISTRY}${COMPOSE_PROJECT_NAME}-solution:${VERSION:-latest}
build:
context: .
dockerfile: ./docker/build/solution/Dockerfile
args:
BUILD_CONFIGURATION: ${BUILD_CONFIGURATION}
BUILD_IMAGE: ${SOLUTION_BUILD_IMAGE}
BASE_IMAGE: ${SOLUTION_BASE_IMAGE}
deploy:
replicas: 0
# Container used to run the MVP Rendering host.
mvp-rendering:
image: ${REGISTRY}${COMPOSE_PROJECT_NAME}-mvp-rendering:${VERSION:-latest}
restart: ${DOCKER_RESTART}
build:
context: ./docker/build/rendering
target: ${BUILD_CONFIGURATION}
args:
DEBUG_BASE_IMAGE: ${NETCORE_BUILD_IMAGE}
RELEASE_BASE_IMAGE: ${NETCORE_RELEASE_IMAGE}
SOLUTION_IMAGE: ${REGISTRY}${COMPOSE_PROJECT_NAME}-solution:${VERSION:-latest}
ENTRYPOINT_ASSEMBLY: Mvp.Project.MvpSite.dll
ARTIFACTS_FOLDER: /artifacts/mvp-rendering
volumes:
- ${LOCAL_DEPLOY_PATH}\mvp-rendering:C:\deploy
environment:
ENTRYPOINT_ASSEMBLY: Mvp.Project.MvpSite.dll
ASPNETCORE_ENVIRONMENT: "Development"
ASPNETCORE_URLS: "http://*:80"
MVP_RENDERING_EDITING_HOST_URI: "http://mvp-rendering"
Sitecore__InstanceUri: "http://cm"
Sitecore__RenderingHostUri: "https://${MVP_RENDERING_HOST}"
Sitecore__EnableExperienceEditor: "true"
Sitecore__JssEditingSecret: ${JSS_EDITING_SECRET}
Okta__OktaDomain: ${OKTA_DOMAIN}
Okta__ClientId: ${OKTA_CLIENT_ID}
Okta__ClientSecret: ${OKTA_CLIENT_SECRET}
Okta__AuthorizationServerId: ${OKTA_AUTH_SERVER_ID}
MvpSelectionsApiClient__BaseAddress: ${MVP_SELECTIONS_API}
depends_on:
- solution
- cm
labels:
- "traefik.enable=true"
- "traefik.http.routers.mvp-secure.entrypoints=websecure"
- "traefik.http.routers.mvp-secure.rule=Host(`${MVP_RENDERING_HOST}`)"
- "traefik.http.routers.mvp-secure.tls=true"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/healthz"]
interval: 60s
timeout: 30s
# Mount the Traefik configuration and certs.
traefik:
volumes:
- ./docker/traefik:C:/etc/traefik
depends_on:
- cm
# Mount our SQL data folder and use our custom image with the Headless Services (JSS)
# module data added. See Dockerfile for details.
mssql:
volumes:
- type: bind
source: .\docker\data\sql
target: c:\data
# 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: .\docker\data\solr
target: c:\data
# Use our custom CM image with added modules and solution code.
# Folders are mounted below for code deployment and log output. See Dockerfile for details.
# Configure for a mounted license file instead of using SITECORE_LICENSE.
cm:
image: ${REGISTRY}${COMPOSE_PROJECT_NAME}-xmcloud-cm:${VERSION:-latest}
build:
context: ./docker/build/cm
args:
PARENT_IMAGE: ${SITECORE_DOCKER_REGISTRY}sitecore-xmcloud-cm:${SITECORE_VERSION}
SOLUTION_IMAGE: ${REGISTRY}${COMPOSE_PROJECT_NAME}-solution:${VERSION:-latest}
TOOLS_IMAGE: ${TOOLS_IMAGE}:${SITECORE_VERSION}
depends_on:
- solution
volumes:
- ${LOCAL_DEPLOY_PATH}\platform:C:\deploy
- ${LOCAL_DATA_PATH}\cm:C:\inetpub\wwwroot\App_Data\logs
- ${HOST_LICENSE_FOLDER}:c:\license
environment:
Sitecore__ExternalCdUrl: "${CM_HOST}"
SITECORE_LICENSE_LOCATION: c:\license\license.xml
SITECORE_JSS_EDITING_SECRET: ${JSS_EDITING_SECRET}
SITECORE_Pages_Client_Host: ${SITECORE_Pages_Client_Host}
SITECORE_Pages_CORS_Allowed_Origins: ${SITECORE_Pages_CORS_Allowed_Origins}
SITECORE_GraphQL_CORS: ${SITECORE_GRAPHQL_CORS}
## SugconEu Rendering Host
SUGCONEU_RENDERING_HOST_ENDPOINT_URI: "${SUGCON_EU_HOST_INTERNAL_URI}/api/editing/render"
SUGCONEU_RENDERING_HOST_PUBLIC_URI: "https://${SUGCON_EU_HOST}"
## SugconAnzsugcon/ Rendering Host
SUGCONANZ_RENDERING_HOST_ENDPOINT_URI: "${SUGCON_ANZ_HOST_INTERNAL_URI}/api/editing/render"
SUGCONANZ_RENDERING_HOST_PUBLIC_URI: "https://${SUGCON_ANZ_HOST}"
## MVP Rendering Host
MVP_RENDERING_HOST_PUBLIC_URI: "https://${MVP_RENDERING_HOST}"
## Development Environment Optimizations
SITECORE_DEVELOPMENT_PATCHES: DevEnvOn,CustomErrorsOff,DebugOn,DiagnosticsOff,InitMessagesOff
Sitecore_AppSettings_exmEnabled:define: "no" # remove to turn on EXM
MVP_RENDERING_EDITING_HOST_URI: "http://mvp-rendering/"
RENDERING_HOST_INTERNAL_URI: ${SUGCON_EU_HOST_INTERNAL_URI}
entrypoint: powershell -Command "& C:/tools/entrypoints/iis/XmCloudDevelopment.ps1"