-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPatch_docker-compose.yml
50 lines (47 loc) · 1.17 KB
/
Patch_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
---
# for use with bash replace these:
# os_version: '2'
# os_user: 'opensearch'
# os_user_id: '1200'
# os_path_data: '/var/local/lib/opensearch'
# os_path_build: '/etc/containers/build_opensearch'
networks:
opensearch:
driver: bridge
external: false
ipam:
driver: default
config:
- subnet: '192.168.0.0/24'
services:
opensearch:
image: 'local/opensearch:{{ os_version }}'
build:
context: .
dockerfile: 'Dockerfile' # Patch_Dockerfile
container_name: 'opensearch'
user: '{{ os_user_id }}:{{ os_user_id }}'
environment:
UID: {{ os_user_id }}
GID: {{ os_user_id }}
OPENSEARCH_JAVA_OPTS: '-Xms1g -Xmx1g'
bootstrap.memory_lock: true
discovery.type: 'single-node'
action.auto_create_index: false
plugins.security.ssl.http.enabled: false
plugins.security.disabled: true
ulimits:
memlock:
hard: -1
soft: -1
nofile:
soft: 65536
hard: 65536
ports:
- '127.0.0.1:9200:9200'
- '127.0.0.1:9600:9600'
volumes:
- "{{ os_path_data }}:/usr/share/opensearch/data"
restart: 'always'
networks:
- 'opensearch'