This repository was archived by the owner on Jan 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
213 lines (199 loc) · 6.68 KB
/
Copy pathdocker-compose.yml
File metadata and controls
213 lines (199 loc) · 6.68 KB
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
version: '3.5'
# For this configuration to work properly, you must have a license file mounted into the dotcms service.
# Without a license file, the external ES service will NOT be recognized and utilized. All documents will
# indexed on the dotcms node directly and will not be persisted between restarts.
networks:
http_net:
db_net:
es_net:
hz_net:
volumes:
cms-shared:
#cms-local:
dbdata:
esdata:
esdata-master2:
esdata-master3:
secrets:
connection_db_base_url:
external: true
name: connection_db_base_url
connection_db_driver:
external: true
name: connection_db_driver
connection_db_leak_detection_threshold:
external: true
name: connection_db_leak_detection_threshold
connection_db_max_idle:
external: true
name: connection_db_max_idle
connection_db_max_total:
external: true
name: connection_db_max_total
connection_db_max_wait:
external: true
name: connection_db_max_wait
connection_db_name:
external: true
name: connection_db_name
connection_db_password:
external: true
name: connection_db_password
connection_db_username:
external: true
name: connection_db_username
connection_db_validation_query:
external: true
name: connection_db_validation_query
##Uncomment these lines in case you need to define a default transaction isolation
#connection_db_default_transaction_isolation:
# external: true
# name: connection_db_default_transaction_isolation
services:
http:
image: dotcms/haproxy:1.8-os
environment:
"HAPROXY_CERT_PATH": '/certs/'
# "HAPROXY_REDIRECT_HTTPS_ALL": 'true'
# "HAPROXY_MAINTENANCE_PAGE": '/srv/config/503.http'
ports:
- "80:8080"
- "443:8443"
# volumes:
# - /data/dotcms/haproxy/certs:/certs:ro
# - /data/dotcms/haproxy/503.http:/srv/config/503.http:ro
networks:
- http_net
hazelcast:
image: dotcms/hazelcast:3.9.2-os
environment:
"PROVIDER_HAZELCAST_HEAP_MIN": '128m'
"PROVIDER_HAZELCAST_HEAP_MAX": '512m'
"PROVIDER_HAZELCAST_MANCENTER_ENABLED": 'true'
"PROVIDER_HAZELCAST_MANCENTER_URL": 'http://hazelcast-mancenter:8080/mancenter'
networks:
- hz_net
#hazelcast-mancenter is a totally optional service that provides insights into
# the hazelcast cache. It will function for a cluster of up to two hazelcast
# nodes. If you wish to use it with clusters with more than two nodes, you
# will need to purchase a license from Hazelcast.
# https://docs.hazelcast.org/docs/latest-development/manual/html/License_Questions.html
hazelcast-mancenter:
image: dotcms/hazelcast-mancenter:3.9.2-os
ports:
- "8080:8080"
networks:
- hz_net
elasticsearch:
image: dotcms/es-open-distro:1.3.0
environment:
"PROVIDER_ELASTICSEARCH_HEAP_SIZE": '1500m'
"PROVIDER_ELASTICSEARCH_DNSNAMES": 'elasticsearch'
"PROVIDER_ELASTICSEARCH_SVC_DELAY_MIN": '1'
"PROVIDER_ELASTICSEARCH_SVC_DELAY_STEP": '1'
"PROVIDER_ELASTICSEARCH_SVC_DELAY_MAX": '2'
"ES_ADMIN_PASSWORD": 'admin'
cluster.name: dotCMSContentIndex
node.name: elasticsearch
node.master: 'true'
node.data: 'true'
discovery.seed_hosts: elasticsearch,elasticsearch-master2,elasticsearch-master3
cluster.initial_master_nodes: elasticsearch,elasticsearch-master2,elasticsearch-master3
volumes:
- esdata:/usr/share/elasticsearch/data
networks:
- es_net
elasticsearch-master2:
image: dotcms/es-open-distro:1.3.0
environment:
"PROVIDER_ELASTICSEARCH_HEAP_SIZE": '1024m'
"PROVIDER_ELASTICSEARCH_DNSNAMES": 'elasticsearch'
"PROVIDER_ELASTICSEARCH_SVC_DELAY_MIN": '3'
"PROVIDER_ELASTICSEARCH_SVC_DELAY_MAX": '30'
"ES_ADMIN_PASSWORD": 'admin'
cluster.name: dotCMSContentIndex
node.name: elasticsearch-master2
node.master: 'true'
node.data: 'true'
discovery.seed_hosts: elasticsearch,elasticsearch-master2,elasticsearch-master3
cluster.initial_master_nodes: elasticsearch,elasticsearch-master2,elasticsearch-master3
depends_on:
- elasticsearch
volumes:
- esdata-master2:/usr/share/elasticsearch/data
networks:
- es_net
elasticsearch-master3:
image: dotcms/es-open-distro:1.3.0
environment:
"PROVIDER_ELASTICSEARCH_HEAP_SIZE": '1024m'
"PROVIDER_ELASTICSEARCH_DNSNAMES": 'elasticsearch'
"PROVIDER_ELASTICSEARCH_SVC_DELAY_MIN": '3'
"PROVIDER_ELASTICSEARCH_SVC_DELAY_MAX": '30'
"ES_ADMIN_PASSWORD": 'admin'
cluster.name: dotCMSContentIndex
node.name: elasticsearch-master3
node.master: 'true'
node.data: 'true'
discovery.seed_hosts: elasticsearch,elasticsearch-master2,elasticsearch-master3
cluster.initial_master_nodes: elasticsearch,elasticsearch-master2,elasticsearch-master3
depends_on:
- elasticsearch-master2
volumes:
- esdata-master3:/usr/share/elasticsearch/data
networks:
- es_net
dotcms:
image: dotcms/dotcms:latest
environment:
"CMS_HEAP_SIZE": '2g'
"CMS_JAVA_OPTS": '-XX:+PrintFlagsFinal'
"PROVIDER_DB_DNSNAME": 'db'
"PROVIDER_ELASTICSEARCH_ENDPOINTS": 'https://elasticsearch:9200'
"ES_ADMIN_PASSWORD": 'admin'
depends_on:
- elasticsearch
- elasticsearch-master2
- elasticsearch-master3
- hazelcast
- db
- http
volumes:
- cms-shared:/data/shared
#- [serverpath]/license.dat:/data/local/dotsecure/license/license.dat
#- [serverpath]/license.zip:/data/shared/assets/license.zip
networks:
- db_net
- http_net
- es_net
- hz_net
secrets:
- connection_db_base_url
- connection_db_driver
- connection_db_leak_detection_threshold
- connection_db_max_idle
- connection_db_max_total
- connection_db_max_wait
- connection_db_password
- connection_db_username
- connection_db_validation_query
db:
image: postgres:11
command: postgres -c 'max_connections=200'
environment:
#Comment these 3 lines if you want to use docker secrets (POSTGRES_PASSWORD, POSTGRES_USER, POSTGRES_DB)
"POSTGRES_USER": 'dotcmsdbuser'
"POSTGRES_PASSWORD": 'password'
"POSTGRES_DB": 'dotcms'
#Uncomment these 3 lines if you want to use docker secrets (POSTGRES_PASSWORD_FILE, POSTGRES_USER_FILE, POSTGRES_DB_FILE)
#"POSTGRES_PASSWORD_FILE": /run/secrets/connection_db_password
#"POSTGRES_USER_FILE": /run/secrets/connection_db_username
#"POSTGRES_DB_FILE": /run/secrets/connection_db_name
secrets:
- connection_db_name
- connection_db_password
- connection_db_username
volumes:
- dbdata:/var/lib/postgresql/data
networks:
- db_net