forked from o19s/opensearch-ubi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
57 lines (53 loc) · 1.42 KB
/
docker-compose.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
version: '3'
services:
opensearch:
build: ./
container_name: opensearch
environment:
discovery.type: single-node
node.name: opensearch
plugins.security.disabled: "true"
# See https://forum.opensearch.org/t/how-to-enable-cors-cross-origin-resource-sharing/426/3 for more
http.cors.enabled: true
# Warning: this is opening it up to all cross domains
# http.cors.allow-origin: "http://localhost"...
http.cors.allow-origin: "*"
http.cors.allow-methods: OPTIONS,HEAD,GET,POST,PUT,DELETE
http.cors.allow-credentials: true
http.cors.allow-headers: X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
plugins.ubi.indices: "awesome"
logger.level: info
OPENSEARCH_INITIAL_ADMIN_PASSWORD: SuperSecretPassword_123
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
ports:
- 9200:9200
- 9600:9600
expose:
- 9200
- 9600
networks:
- opensearch-net
# opensearch-dashboards:
# build: ./dashboard-plugin/
# container_name: opensearch-dashboards
# ports:
# - 5601:5601
# expose:
# - 5601
# environment:
# OPENSEARCH_HOSTS: '["http://opensearch:9200"]'
# networks:
# - opensearch-net
# depends_on:
# - opensearch
volumes:
opensearch-data:
networks:
opensearch-net:
driver: bridge