-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
108 lines (97 loc) · 3.32 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: '3'
services:
dev-env:
build:
context: .
dockerfile: Dockerfile
args:
USER_ID: ${DEV_USER_ID:-2000}
GROUP_ID: ${DEV_GROUP_ID:-2000}
USERNAME: "devuser"
container_name: dev-env
volumes:
- .:/usr/src/app
command: [ "/bin/bash" ]
environment:
# Pass the following variables from .env file to the container
- OPENSEARCH_HOST
- OPENSEARCH_PORT
- OPENSEARCH_SSL_ENABLED
- OPENSEARCH_USER
- OPENSEARCH_SECRET
- AUTH_METHOD
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_REGION
- AWS_SERVICE
# For backward compatibility
- AWS_USER
- AWS_SECRET
depends_on:
- "opensearch-node"
ports:
- 8888:8888
networks:
- opensearch-net
tty: true
stdin_open: true
# Set a profile, don't run dev-env by default
profiles:
- dev-env
# The following configuration is based on the OpenSearch documentation:
# https://opensearch.org/docs/latest/opensearch/install/docker/
opensearch-node:
image: opensearchproject/opensearch:2.15.0
container_name: opensearch-node
environment:
cluster.name: opensearch-cluster
node.name: opensearch-node
# along with the memlock settings below, disables swapping
bootstrap.memory_lock: "true"
# minimum and maximum Java heap size, recommend setting both to 50%
# of system RAM
OPENSEARCH_JAVA_OPTS: "-Xms512m -Xmx512m"
# disables execution of install_demo_configuration.sh bundled with
# security plugin, which installs demo certificates and security
# configurations to OpenSearch
DISABLE_INSTALL_DEMO_CONFIG: "true"
# disables security plugin entirely in OpenSearch by setting
# plugins.security.disabled: true in opensearch.yml
DISABLE_SECURITY_PLUGIN: "true"
# disables bootstrap checks that are enabled when network.host is
# set to a non-loopback address
discovery.type: single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
# maximum number of open files for the OpenSearch user, set to at
# least 65536 on modern systems
soft: 65536
hard: 65536
volumes:
- opensearch-data:/usr/share/opensearch/data
ports:
- 9200:9200
# required for Performance Analyzer
- 9600:9600
networks:
- opensearch-net
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:2.15.0
container_name: opensearch-dashboards
ports:
- 5601:5601
expose:
- "5601"
environment:
OPENSEARCH_HOSTS: '["http://opensearch-node:9200"]'
# disables security dashboards plugin in OpenSearch Dashboards
DISABLE_SECURITY_DASHBOARDS_PLUGIN: "true"
networks:
- opensearch-net
volumes:
opensearch-data:
networks:
opensearch-net: