forked from openmrs/openmrs-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.es.yml
More file actions
58 lines (52 loc) · 1.9 KB
/
docker-compose.es.yml
File metadata and controls
58 lines (52 loc) · 1.9 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
version: "3.8"
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
# the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
#
# Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
# graphic logo is a trademark of OpenMRS Inc.
services:
es:
image: elasticsearch:8.17.2
deploy:
resources:
limits:
memory: 2g
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- xpack.security.enabled=false
- xpack.security.enrollment.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "9200:9200"
volumes:
- es-data:/usr/share/elasticsearch/data
restart: "always"
command: >
/bin/sh -c "./bin/elasticsearch-plugin list | grep -q analysis-phonetic
|| ./bin/elasticsearch-plugin install analysis-phonetic;
/usr/local/bin/docker-entrypoint.sh"
healthcheck:
test:
[
"CMD-SHELL",
"curl -s http://localhost:9200 | grep -q 'missing authentication credentials'",
]
interval: 10s
timeout: 10s
retries: 120
api:
environment:
OMRS_DEV_DEBUG_PORT: ${OMRS_DEV_DEBUG_PORT:-8000}
OMRS_CREATE_TABLES: ${OMRS_CREATE_TABLES:-true}
OMRS_SEARCH: ${OMRS_SEARCH:-elasticsearch}
OMRS_BUILD: ${OMRS_BUILD:-true}
OMRS_BUILD_GOALS: ${OMRS_BUILD_GOALS:-}
OMRS_BUILD_ARGS: ${OMRS_BUILD_ARGS:-}
volumes:
es-data: