forked from HCL-TECH-SOFTWARE/dx-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdx.yaml
executable file
·181 lines (179 loc) · 5.13 KB
/
dx.yaml
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
# Copyright 2021, 2023 HCL Technologies
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
version: '3.8'
services:
core:
container_name: dx-core
image: '${DX_DOCKER_IMAGE_CORE}'
volumes:
- ./volumes/core/wp_profile:/opt/HCL/wp_profile
ports:
- '7777:7777'
- '10020:10020'
- '10039:10039'
- '10041:10041'
- '10200:10200'
- '10202:10202'
- '10033:10033'
- '10203:10203'
networks:
- default
ringapi:
container_name: dx-ringapi
depends_on:
- core
image: '${DX_DOCKER_IMAGE_RING_API}'
environment:
- DEBUG=ringapi-server:*
- PORTAL_PORT=10039
- PORTAL_HOST=dx-core
ports:
- '4000:3000'
networks:
- default
dam:
container_name: dx-dam
depends_on:
dam-db-pool:
condition: service_healthy
image: '${DX_DOCKER_IMAGE_DAM}'
environment:
- DEBUG=INFO:server-v1:*,ERROR:server-v1:*
- POSTGRES_DB_NAME=dxmediadb
- POSTGRES_DB_USER=dxuser
- POSTGRES_DB_PORT=5432
- POSTGRES_DB_PASSWORD=d1gitalExperience
- POSTGRES_DB_HOST=dx-dam-db-pool
- RING_API_HOST=dx-ringapi
- RING_API_PORT=3000
- IMAGE_PROCESSOR_API_HOST=dx-image-processor
- IMAGE_PROCESSOR_API_PORT=8080
- INTERNAL_BASE_API_HOST=dx-dam
- INTERNAL_BASE_API_PORT=3001
- DAM_CRUD_USER_PASSWORD=1234
- DAM_CRUD_USER=damuser
- DX_ADMIN=wpsadmin
- DX_PASSWORD=wpsadmin
ports:
- '3000:3001'
volumes:
- ./volumes/dam/upload:/opt/app/upload
networks:
- default
image-processor:
container_name: dx-image-processor
image: '${DX_DOCKER_IMAGE_IMAGE_PROCESSOR}'
environment:
- DEBUG=INFO:server-v1:*,ERROR:server-v1:*
ports:
- '3500:8080'
networks:
- default
cc:
container_name: dx-cc
image: '${DX_DOCKER_IMAGE_CONTENT_COMPOSER}'
ports:
- '5000:3000'
environment:
- DEBUG=INFO:server-v1:*,ERROR:server-v1:*
- PORTAL_PORT=10039
- PORTAL_HOST=${DX_HOSTNAME}
- RING_API_HOST=dx-ringapi
- RING_API_PORT=3000
networks:
- default
dam-db-node-0:
container_name: dx-dam-db-node-0
hostname: dx-dam-db-node-0
image: '${DX_DOCKER_IMAGE_DAM_DB_NODE}'
environment:
- POSTGRES_DB=dxmediadb
- POSTGRES_USER=dxuser
- POSTGRES_PASSWORD=d1gitalExperience
- POSTGRES_REPLICATION_USER=repdxuser
- POSTGRES_REPLICATION_PASSWORD=d1gitalExperience
- DAM_USER=damuser
- POSTGRES_WAL_SENDERS=5
- POSTGRES_WAL_KEEP_SEGMENTS=64
- REPLICATION_DB=repmgr
- REPMGR_PORT_NUMBER=5432
- REPMGR_PARTNER_NODES=dx-dam-db-node-0;
- SYNCHRONOUS_COMMIT=off
- SYNCHRONOUS_STANDBY_NAMES="*"
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 30s
timeout: 30s
retries: 3
ports:
- '5433:5432'
volumes:
- ./volumes/dam/db:/var/lib/pgsql/11/data
networks:
- default
dam-db-pool:
container_name: dx-dam-db-pool
image: '${DX_DOCKER_IMAGE_DAM_DB_CONNECTION_POOL}'
ports:
- 5432:5432
environment:
- PGPOOL_BACKEND_NODES=0:dx-dam-db-node-0:5432
- PGPOOL_MAX_POOL=15
- PGPOOL_SR_CHECK_USER=repdxuser
- PGPOOL_SR_CHECK_PASSWORD=d1gitalExperience
- PGPOOL_SR_CHECK_DATABASE=repmgr
- PGPOOL_POSTGRES_USERNAME=dxuser
- PGPOOL_POSTGRES_PASSWORD=d1gitalExperience
- PGPOOL_ADMIN_USERNAME=admin
- PGPOOL_ADMIN_PASSWORD=adminpassword
- PGPOOL_ENABLE_LOAD_BALANCING=yes
- PGPOOL_POSTGRES_CUSTOM_USERS=damuser
- PGPOOL_POSTGRES_CUSTOM_PASSWORDS=1234
networks:
- default
depends_on:
dam-db-node-0:
condition: service_healthy
healthcheck:
test: ['CMD-SHELL', 'sh scripts/healthcheck.sh']
interval: 30s
timeout: 15s
retries: 5
haproxy:
image: '${DX_DOCKER_IMAGE_HAPROXY}'
container_name: dx-haproxy
volumes:
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
ports:
- 80:8081
networks:
- default
prereqs-checker:
image: '${DX_DOCKER_IMAGE_PREREQS_CHECKER}'
container_name: dx-prereqs-checker
environment:
- CHECK_SCHEDULE=0 8 * * *
- THRESHOLD_LATENCY_MS=3
- THRESHOLD_RANDOM_READ_IOPS=1800
- THRESHOLD_RANDOM_WRITE_IOPS=600
- PERFORM_FILE_PERMISSION_CHECK=true
- PERFORM_SOFTLINK_HARDLINK_CHECK=true
volumes:
- ./volumes/core/wp_profile:/mnt/prereqs-checks-volumes/wp_profile
- ./volumes/dam/upload:/mnt/prereqs-checks-volumes/upload
- ./volumes/dam/db:/mnt/prereqs-checks-volumes/data
ports:
- 81:8082
networks:
- default