-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
44 lines (43 loc) · 2.02 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
version: "3"
services:
opensearch-node1:
restart: always
image: opensearchproject/opensearch:latest
container_name: opensearch-node1
environment:
- discovery.type=single-node
- compatibility.override_main_response_version=true
- plugins.security.disabled=false
- plugins.security.restapi.roles_enabled=["all_access"]
- cluster.default_number_of_replicas=0
- "path.repo=/usr/share/opensearch/data/repo"
volumes:
- /var/elk/data:/usr/share/opensearch/data
- /var/elk/opensearch-security/config.yml:/usr/share/opensearch/config/opensearch-security/config.yml
- /var/elk/opensearch-security/roles_mapping.yml:/usr/share/opensearch/config/opensearch-security/roles_mapping.yml
- /var/elk/jvm.options:/usr/share/opensearch/config/jvm.options
- /var/elk/opensearch-security/internal_users.yml:/usr/share/opensearch/config/opensearch-security/internal_users.yml
- /var/elk/opensearch.keystore:/usr/share/opensearch/config/opensearch.keystore
- /var/elk/jdk-lib-security:/usr/share/opensearch/jdk/lib/security
networks:
- opensearch-net
ports:
- 9200:9200 # REST API
- 9600:9600 # Performance Analyzer
opensearch-dashboards:
restart: always
image: opensearchproject/opensearch-dashboards:latest # Make sure the version of opensearch-dashboards matches the version of opensearch installed on other nodes
container_name: opensearch-dashboards
ports:
- 5601:5601 # Map host port 5601 to container port 5601
networks:
- opensearch-net
expose:
- "5601" # Expose port 5601 for web access to OpenSearch Dashboards
environment:
OPENSEARCH_HOSTS: '["https://opensearch-node1:9200"]' # Define the OpenSearch nodes that OpenSearch Dashboards will query
volumes:
- /var/elk/opensearch-dashboards/config/opensearch_dashboards.yml:/usr/share/opensearch-dashboards/config/opensearch_dashboards.yml
- /var/elk/cert:/usr/share/opensearch-dashboards/certs/
networks:
opensearch-net: