-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (33 loc) · 1.13 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
services:
opensearch:
image: opensearchproject/opensearch:2.17.1
container_name: opensearch-wikipedia
environment:
discovery.type: single-node
node.name: opensearch
DISABLE_SECURITY_PLUGIN: true
OPENSEARCH_JAVA_OPTS: "-Xms512m -Xmx4096m"
cluster.routing.allocation.disk.watermark.low: 10gb
cluster.routing.allocation.disk.watermark.high: 5gb
cluster.routing.allocation.disk.watermark.flood_stage: 2gb
http.cors.enabled: 'true'
http.cors.allow-origin: "*"
http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers: X-Requested-With,X-Auth-Token,Content-Type, Content-Length
volumes:
- ./opensearch-data:/usr/share/opensearch/data
ports:
- "9200:9200"
- "9600:9600"
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:2.17.1
container_name: opensearch-wikipedia-dashboards
ports:
- "5601:5601"
expose:
- "5601"
environment:
OPENSEARCH_HOSTS: '["http://opensearch-wikipedia:9200"]'
DISABLE_SECURITY_DASHBOARDS_PLUGIN: true
depends_on:
- opensearch