-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.opensearch.yaml
60 lines (57 loc) · 1.91 KB
/
docker-compose.opensearch.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
#ddev-generated
services:
opensearch:
container_name: ddev-${DDEV_SITENAME}-opensearch
build:
context: ./opensearch
dockerfile: Dockerfile
args:
OPENSEARCH_TAG: ${OPENSEARCH_TAG:-latest}
INSTALL_PLUGIN_ANALYSIS_PHONETIC: ${INSTALL_PLUGIN_ANALYSIS_PHONETIC:-true}
INSTALL_PLUGIN_ANALYSIS_ICU: ${INSTALL_PLUGIN_ANALYSIS_ICU:-true}
expose:
- 9200
environment:
# see https://opensearch.org/docs/latest/install-and-configure/install-opensearch/docker/ for available options
# disables installation of demo data
- "DISABLE_INSTALL_DEMO_CONFIG=true"
# disables security plugin
- "DISABLE_SECURITY_PLUGIN=true"
- cluster.name=opensearch-cluster
- node.name=opensearch-node
- discovery.type=single-node
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- VIRTUAL_HOST=$DDEV_HOSTNAME
- HTTP_EXPOSE=9200:9200
- HTTPS_EXPOSE=9201:9200
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: $DDEV_APPROOT
volumes:
- opensearch:/usr/share/opensearch/data
- ".:/mnt/ddev_config"
- "ddev-global-cache:/mnt/ddev-global-cache"
healthcheck:
test: ["CMD-SHELL", "curl --fail -s localhost:9200"]
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:${OPENSEARCH_DASHBOARDS_TAG:-latest}
container_name: 'ddev-${DDEV_SITENAME}-opensearch-dashboards'
environment:
- VIRTUAL_HOST=$DDEV_HOSTNAME
- OPENSEARCH_HOSTS=http://ddev-${DDEV_PROJECT}-opensearch:9200
- "DISABLE_SECURITY_DASHBOARDS_PLUGIN=true" # disables security plugin
- HTTP_EXPOSE=5601:5601
- HTTPS_EXPOSE=5602:5601
expose:
- 5601
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: $DDEV_APPROOT
depends_on:
- opensearch
web:
depends_on:
- opensearch
volumes:
opensearch: