-
Notifications
You must be signed in to change notification settings - Fork 4
/
compose.yaml
114 lines (114 loc) · 2.6 KB
/
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
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
109
110
111
112
113
114
services:
test:
image: custom-os
build:
context: test-image
dockerfile: Dockerfile.testbuild
args:
TEST_REPO: ${TEST_REPO}
TEST_BRANCH: ${TEST_BRANCH}
OPENSEARCH_VERSION: ${OPENSEARCH_VERSION}
container_name: test
environment:
- cluster.name=test
- node.name=test
- discovery.type=single-node
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms${TEST_JVM} -Xmx${TEST_JVM} -XX:StartFlightRecording=delay=5s,dumponexit=true,filename=/share-data/profiles/${RUN_ID}.jfr"
- "DISABLE_SECURITY_PLUGIN=true"
- "RUN_ID=${RUN_ID}"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- test:/usr/share/opensearch/data
- share-data:/share-data
ports:
- 9200:9200
- 9600:9600
networks:
- test-net
deploy:
resources:
limits:
cpus: "${TEST_CPU_COUNT}"
memory: ${TEST_MEM_SIZE}
security_opt:
- seccomp:unconfined
cap_add:
- SYS_ADMIN
metrics:
image: opensearchproject/opensearch:2.14.0
container_name: metrics
environment:
- cluster.name=metrics
- node.name=metrics
- discovery.type=single-node
- bootstrap.memory_lock=true
- http.port=9202
- transport.port=9602
- "OPENSEARCH_JAVA_OPTS=-Xms${METRICS_JVM} -Xmx${METRICS_JVM}"
- "DISABLE_SECURITY_PLUGIN=true"
- "RUN_ID=${RUN_ID}"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- metrics:/usr/share/opensearch/data
ports:
- 9202:9202
- 9602:9602
networks:
- test-net
deploy:
resources:
limits:
cpus: "${METRICS_CPU_COUNT}"
memory: ${METRICS_MEM_SIZE}
osb:
image: custom-osb
container_name: osb
build:
context: osb
dockerfile: Dockerfile.customosb
depends_on:
- metrics
- test
volumes:
- share-data:/share-data
networks:
- test-net
environment:
- "OSB_PROCEDURE=${OSB_PROCEDURE}"
- "OSB_PARAMS=${OSB_PARAMS}"
- "OSB_SHOULD_PROFILE=${OSB_SHOULD_PROFILE}"
- "RUN_ID=${RUN_ID}"
deploy:
resources:
limits:
cpus: "${OSB_CPU_COUNT}"
memory: ${OSB_MEM_SIZE}
volumes:
test:
driver: local
driver_opts:
type: none
o: bind
device: /os-data
metrics:
share-data:
driver: local
driver_opts:
type: none
o: bind
device: /tmp/share-data
networks:
test-net: