-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
270 lines (258 loc) · 7.92 KB
/
docker-compose.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
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
services:
rabbitmq:
profiles:
- redoer
environment:
# See https://github.com/bitnami/bitnami-docker-rabbitmq#configuration
RABBITMQ_PASSWORD: ${RABBITMQ_PASSWORD:-bitnami}
RABBITMQ_USERNAME: ${RABBITMQ_USERNAME:-user}
image: bitnami/rabbitmq:${SENZING_DOCKER_IMAGE_VERSION_BITNAMI_RABBITMQ:-latest}
networks:
- senzing
ports:
- 15672:15672
- 5672:5672
restart: always
volumes:
- rabbitmq:/bitnami
redoer:
profiles:
- redoer
depends_on:
- rabbitmq
environment:
SENZING_RABBITMQ_INFO_EXCHANGE: senzing-rabbitmq-exchange
SENZING_RABBITMQ_INFO_HOST: rabbitmq
SENZING_RABBITMQ_INFO_PASSWORD: ${RABBITMQ_PASSWORD:-bitnami}
SENZING_RABBITMQ_INFO_PORT: 5672
SENZING_RABBITMQ_INFO_ROUTING_KEY: senzing.records
SENZING_RABBITMQ_INFO_USERNAME: ${RABBITMQ_USERNAME:-user}
SENZING_RABBITMQ_INFO_VIRTUAL_HOST: "/"
image: senzing/redoer:${SENZING_DOCKER_IMAGE_VERSION_REDOER:-latest}
networks:
- senzing
read_only: true
restart: always
postgres:
environment:
# See https://github.com/bitnami/bitnami-docker-postgresql#configuration
POSTGRESQL_DATABASE: ${POSTGRES_DB:-G2}
POSTGRESQL_PASSWORD: ${POSTGRES_PASSWORD:-senzing}
POSTGRESQL_POSTGRES_PASSWORD: ${POSTGRESQL_POSTGRES_PASSWORD:-postgres}
POSTGRESQL_USERNAME: ${POSTGRES_USERNAME:-senzing}
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USERNAME:-postgres}" ]
interval: 10s
timeout: 5s
retries: 5
image: bitnami/postgresql:${SENZING_DOCKER_IMAGE_VERSION_BITNAMI_POSTGRESQL:-latest}
networks:
- senzing
ports:
- 5432:5432
user: "${SENZING_UID:-504}:0"
restart: always
volumes:
- postgres:/bitnami/postgresql
init-postgres:
depends_on:
- postgres
environment:
LC_CTYPE: en_US.utf8
# See https://github.com/Senzing/init-postgresql#configuration
SENZING_CONFIGURATION_MODIFICATIONS: |
addDataSource PEOPLE
SENZING_ENGINE_CONFIGURATION_JSON: >-
{
"PIPELINE": {
"CONFIGPATH": "/etc/opt/senzing",
"LICENSESTRINGBASE64": "${SENZING_LICENSE_BASE64_ENCODED}",
"RESOURCEPATH": "/opt/senzing/g2/resources",
"SUPPORTPATH": "/opt/senzing/data"
},
"SQL": {
"BACKEND": "SQL",
"CONNECTION": "postgresql://${POSTGRES_USERNAME:-senzing}:${POSTGRES_PASSWORD:-senzing}@postgres:5432:G2/"
}
}
SENZING_SUBCOMMAND: mandatory
image: senzing/init-postgresql:${SENZING_DOCKER_IMAGE_VERSION_INIT_POSTGRESQL:-latest}
networks:
- senzing
read_only: true
restart: on-failure
api:
depends_on:
- postgres
environment:
SENZING_API_SERVER_ALLOWED_ORIGINS: '*'
SENZING_API_SERVER_ENABLE_ADMIN: 'true'
SENZING_ENGINE_CONFIGURATION_JSON: >-
{
"PIPELINE": {
"CONFIGPATH": "/etc/opt/senzing",
"LICENSESTRINGBASE64": "${SENZING_LICENSE_BASE64_ENCODED}",
"RESOURCEPATH": "/opt/senzing/g2/resources",
"SUPPORTPATH": "/opt/senzing/data"
},
"SQL": {
"BACKEND": "SQL",
"CONNECTION": "postgresql://${POSTGRES_USERNAME:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432:G2/"
}
}
image: senzing/senzing-api-server:${SENZING_DOCKER_IMAGE_VERSION_SENZING_API_SERVER:-latest}
networks:
- senzing
ports:
- 8250:8250
read_only: true
restart: always
tmpfs:
- '/tmp'
tools:
build: .
environment:
SENZING_ENGINE_CONFIGURATION_JSON: >-
{
"PIPELINE": {
"CONFIGPATH": "/etc/opt/senzing",
"LICENSESTRINGBASE64": "${SENZING_LICENSE_BASE64_ENCODED}",
"RESOURCEPATH": "/opt/senzing/g2/resources",
"SUPPORTPATH": "/opt/senzing/data/current"
},
"SQL": {
"BACKEND": "SQL",
"CONNECTION": "postgresql://${POSTGRES_USERNAME:-senzing}:${POSTGRES_PASSWORD:-senzing}@postgres:5432:G2"
}
}
networks:
- senzing
command: run
volumes:
- ./config:/etc/cmr/config
- ./data/import:/etc/cmr/import
- ./data/export:/etc/cmr/export
- ./lib:/opt/cmr/lib
importer:
profiles:
- load
depends_on:
- api
build: .
environment:
SENZING_ENGINE_CONFIGURATION_JSON: >-
{
"PIPELINE": {
"CONFIGPATH": "/etc/opt/senzing",
"LICENSESTRINGBASE64": "${SENZING_LICENSE_BASE64_ENCODED}",
"RESOURCEPATH": "/opt/senzing/g2/resources",
"SUPPORTPATH": "/opt/senzing/data/current"
},
"SQL": {
"BACKEND": "SQL",
"CONNECTION": "postgresql://${POSTGRES_USERNAME:-senzing}:${POSTGRES_PASSWORD:-senzing}@postgres:5432:G2"
}
}
networks:
- senzing
command: load
volumes:
- ${IMPORTER_CONFIG_FILE:-./config/config.yml}:/etc/cmr/config.yml
- ./data/import:/etc/cmr/import
exporter:
profiles:
- export
depends_on:
- api
build: .
environment:
SENZING_ENGINE_CONFIGURATION_JSON: >-
{
"PIPELINE": {
"CONFIGPATH": "/etc/opt/senzing",
"LICENSESTRINGBASE64": "${SENZING_LICENSE_BASE64_ENCODED}",
"RESOURCEPATH": "/opt/senzing/g2/resources",
"SUPPORTPATH": "/opt/senzing/data/current"
},
"SQL": {
"BACKEND": "SQL",
"CONNECTION": "postgresql://${POSTGRES_USERNAME:-senzing}:${POSTGRES_PASSWORD:-senzing}@postgres:5432:G2"
}
}
networks:
- senzing
command: export
volumes:
- ${EXPORTER_CONFIG_FILE:-./config/config.yml}:/etc/cmr/config.yml
- ./data/export:/etc/cmr/export
cmr-api:
profiles:
- cmr-api
depends_on:
- api
build: .
environment:
CMR_API_KEY: ${CMR_API_KEY:-ThisIsTheDefaultKey!}
CMR_CONFIG_FILE: /etc/cmr/config.yml
networks:
- senzing
ports:
- ${CMR_API_PORT:-3000}:3000
command: api
volumes:
- ${CMR_CONFIG_FILE:-./config/config.yml}:/etc/cmr/config.yml
webapp-console:
profiles:
- webapp
environment:
SENZING_CONSOLE_SERVER_PORT: 8257
SENZING_ENGINE_CONFIGURATION_JSON: >-
{
"PIPELINE": {
"CONFIGPATH": "/etc/opt/senzing",
"LICENSESTRINGBASE64": "${SENZING_LICENSE_BASE64_ENCODED}",.
"RESOURCEPATH": "/opt/senzing/g2/resources",
"SUPPORTPATH": "/opt/senzing/data"
},
"SQL": {
"BACKEND": "SQL",
"CONNECTION": "postgresql://${POSTGRES_USERNAME:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432:G2/"
}
}
image: senzing/entity-search-web-app-console:${SENZING_DOCKER_IMAGE_VERSION_ENTITY_SEARCH_WEB_APP_CONSOLE:-latest}
networks:
- senzing
user: "${SENZING_UID:-1001}:${SENZING_GID:-1001}"
restart: always
volumes:
- senzing:/var/opt/senzing
webapp:
profiles:
- webapp
depends_on:
- api
- webapp-console
environment:
# See https://github.com/Senzing/entity-search-web-app#configuration
SENZING_API_SERVER_URL: http://api:8250
SENZING_CONSOLE_SERVER_URL: ws://webapp-console:8257
SENZING_WEB_SERVER_ADMIN_AUTH_MODE: NONE
SENZING_WEB_SERVER_ADMIN_AUTH_PATH: http://webapp:8251
SENZING_WEB_SERVER_INTERNAL_URL: http://webapp:8251
SENZING_WEB_SERVER_PORT: 8251
SENZING_WEB_SERVER_STREAM_CLIENT_URL: wss://api:8250/ws
image: senzing/entity-search-web-app:${SENZING_DOCKER_IMAGE_VERSION_ENTITY_SEARCH_WEB_APP:-latest}
networks:
- senzing
ports:
- 8251:8251
- 8257:8257
read_only: true
restart: always
networks:
senzing:
name: ${SENZING_DOCKER_NETWORK:-senzing-network}
volumes:
postgres:
rabbitmq:
senzing: