This repository has been archived by the owner on Dec 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathdocker-compose.sugcon.yml
93 lines (86 loc) · 3.44 KB
/
docker-compose.sugcon.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
version: "2.4"
## Usage:
# $> docker-compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.sugcon.yml up -d
# .. and to bring all containers down again
# $> docker-compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.sugcon.yml down
##
services:
traefik:
depends_on:
sugcon-eu-rendering:
condition: service_started
# sugcon-anz-rendering:
# condition: service_started
sugcon-eu-rendering:
container_name: sugcon-eu-rendering
image: ${MVP_DOCKER_REGISTRY}sugcon-rendering:${SITECORE_VERSION}
volumes:
- ${LOCAL_DEPLOY_PATH}\sugcon-rendering:C:\deploy
environment:
ENTRYPOINT_ASSEMBLY: Mvp.Project.Sugcon.Rendering.dll
ASPNETCORE_ENVIRONMENT: "Development"
ASPNETCORE_URLS: "http://*:80"
Sitecore__InstanceUri: "http://cd"
Sitecore__RenderingHostUri: "https://${SUGCON_EU_RENDERING_HOST}"
Sitecore__EnableExperienceEditor: "true"
Sitecore__DefaultSiteName: "sugcon-eu"
Application_User_Name: ${SITECORE_APPLICATION_USER_NAME}
Application_User_Password: ${SITECORE_APPLICATION_USER_PASSWORD}
Application_User_Domain: ${SITECORE_APPLICATION_USER_DOMAIIN}
Application_CMS_URL: ${SITECORE_Application_CMS_URL}
ports:
- "80"
mem_limit: ${MEM_LIMIT_RENDERING:-1GB}
depends_on:
- sugcon-rendering
- cm
- cd
labels:
- "traefik.enable=true"
- "traefik.http.routers.sugcon-eu-secure.entrypoints=websecure"
- "traefik.http.routers.sugcon-eu-secure.rule=Host(`${SUGCON_EU_RENDERING_HOST}`)"
- "traefik.http.routers.sugcon-eu-secure.tls=true"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/healthz"]
interval: 60s
timeout: 30s
# sugcon-anz-rendering:
# container_name: sugcon-anz-rendering
# image: ${MVP_DOCKER_REGISTRY}sugcon-rendering:${SITECORE_VERSION}
# volumes:
# - .\:C:\solution
# environment:
# ASPNETCORE_ENVIRONMENT: "Development"
# ASPNETCORE_URLS: "http://*:80"
# Sitecore__InstanceUri: "http://cd"
# Sitecore__RenderingHostUri: "https://${SUGCON_ANZ_RENDERING_HOST}"
# Sitecore__EnableExperienceEditor: "true"
# Sitecore__DefaultSiteName: "sugcon-anz"
# Application_User_Name: ${SITECORE_APPLICATION_USER_NAME}
# Application_User_Password: ${SITECORE_APPLICATION_USER_PASSWORD}
# Application_User_Domain: ${SITECORE_APPLICATION_USER_DOMAIIN}
# Application_CMS_URL: ${SITECORE_Application_CMS_URL}
# ports:
# - "80"
# mem_limit: ${MEM_LIMIT_RENDERING:-1GB}
# depends_on:
# - sugcon-rendering
# - cm
# - cd
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.sugcon-anz-secure.entrypoints=websecure"
# - "traefik.http.routers.sugcon-anz-secure.rule=Host(`${SUGCON_ANZ_RENDERING_HOST}`)"
# - "traefik.http.routers.sugcon-anz-secure.tls=true"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost/healthz"]
# interval: 60s
# timeout: 30s
cm:
environment:
SUGCON_EU_RENDERING_HOST_PUBLIC_URI: https://${SUGCON_EU_RENDERING_HOST}
# SUGCON_ANZ_RENDERING_HOST_PUBLIC_URI: https://${SUGCON_ANZ_RENDERING_HOST}
cd:
environment:
SUGCON_EU_RENDERING_HOST_PUBLIC_URI: https://${SUGCON_EU_RENDERING_HOST}
# SUGCON_ANZ_RENDERING_HOST_PUBLIC_URI: https://${SUGCON_ANZ_RENDERING_HOST}