Last active
August 21, 2019 14:11
-
-
Save bplasmeijer/762a077718cc786b54ae8076dc204e7f to your computer and use it in GitHub Desktop.
sitecore-ssr-docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.4' | |
services: | |
sql: | |
image: sitecore-xm1-jss-11.0.1-sqldev:9.1.1-windowsservercore-ltsc2019 | |
networks: | |
xyzlan: | |
volumes: | |
- .\data\sql:C:\Data | |
mem_limit: 2GB | |
ports: | |
- "44010:1433" | |
solr: | |
image: sitecore-xm1-solr:9.1.1-nanoserver-1809 | |
networks: | |
xyzlan: | |
volumes: | |
- .\data\solr:C:\Data | |
mem_limit: 1GB | |
ports: | |
- "44011:8983" | |
cd: | |
image: xyz-cd:dev | |
networks: | |
xyzlan: | |
build: | |
context: .\src\Project\xyz.Project.Presentation.Website\code | |
dockerfile: Dockerfile.CD | |
args: | |
configuration: Debug | |
container_name: xyz-sitecore_cd | |
entrypoint: cmd /c "start /B powershell C:/inetpub/sc/App_Config/Watch-Directory.ps1 C:/src C:\inetpub\sc -ExcludeFiles @('Web.config','ConnectionStrings.config') & C:\\remote_debugger\\x64\\msvsmon.exe /noauth /anyuser /silent /nostatus /noclrwarn /nosecuritywarn /nofirewallwarn /nowowwarn /timeout:2147483646" | |
isolation: process | |
environment: | |
- DEV_ENVIRONMENT=1 | |
- VBCSCOMPILER_TTL=604800 | |
volumes: | |
- .\src\Project\xyz.Project.Presentation.Website\code:C:\src | |
- .\data\cd:C:\inetpub\sc\App_Data\logs | |
- C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Remote Debugger:C:\remote_debugger:ro | |
ports: | |
- "44002:80" | |
links: | |
- sql | |
- solr | |
cm: | |
image: xyz-cm:dev | |
networks: | |
xyzlan: | |
aliases: | |
- local-cms.xyz-nonprod.xyzlan.com | |
build: | |
context: .\src\Project\xyz.Project.Presentation.Website\code | |
dockerfile: Dockerfile.CM | |
args: | |
configuration: Debug | |
container_name: xyz-sitecore_cm | |
entrypoint: cmd /c "start /B powershell C:/inetpub/sc/App_Config/Watch-Directory.ps1 C:/src C:\inetpub\sc -ExcludeFiles @('Web.config','ConnectionStrings.config') & C:\\remote_debugger\\x64\\msvsmon.exe /noauth /anyuser /silent /nostatus /noclrwarn /nosecuritywarn /nofirewallwarn /nowowwarn /timeout:2147483646" | |
isolation: process | |
environment: | |
- DEV_ENVIRONMENT=1 | |
- VBCSCOMPILER_TTL=604800 | |
volumes: | |
- .\src\Project\xyz.Project.Presentation.Website\code:C:\src | |
- .\data\cm:C:\inetpub\sc\App_Data\logs | |
- C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Remote Debugger:C:\remote_debugger:ro | |
ports: | |
- "44001:80" | |
links: | |
- sql | |
- solr | |
ssr: | |
image: node-headless-ssr-proxy:dev | |
networks: | |
xyzlan: | |
build: | |
context: ..\xyz-jss\node-headless-ssr-proxy | |
dockerfile: dockerfile | |
volumes: | |
- ..\xyz-jss\node-headless-ssr-proxy\dist:c:\app\dist | |
mem_limit: 2GB | |
ports: | |
- "3000:3000" | |
links: | |
- cm | |
networks: | |
xyzlan: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM stefanscherer/node-windows:10.15.3-nanoserver-1809 | |
WORKDIR /app | |
#COPY . /app | |
COPY package*.json ./ | |
#RUN npm config set package-lock false | |
RUN npm install | |
COPY . . | |
EXPOSE 3000 | |
ENTRYPOINT npm run start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment