-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.opensearch.yml
95 lines (89 loc) · 2.55 KB
/
docker-compose.opensearch.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
---
services:
opensearch:
image: opensearchproject/opensearch:${OPENSEARCH__STACK_VERSION}
restart: unless-stopped
mem_limit: 5G
environment:
- cluster.name=opensearch-cluster
- bootstrap.memory_lock=true
- discovery.type=single-node
- node.name=opensearch
- OPENSEARCH_JAVA_OPTS=-Xms4g -Xmx4g
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=$OPENSEARCH__INITIAL_PASSWORD
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- opensearchdata:/usr/share/opensearch/data
ports:
- 9201:9200
container_name: opensearch
hostname: opensearch
networks:
- oam
healthcheck:
test: curl -k -u admin:$$OPENSEARCH_PASSWORD -s https://localhost:9200/_cluster/health | grep -vq '"status":"red"'
interval: 20s
retries: 10
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:${OPENSEARCH__STACK_VERSION}
restart: unless-stopped
mem_limit: 1G
ports:
- 5602:5601
depends_on:
opensearch:
condition: service_healthy
environment:
OPENSEARCH_HOSTS: '["https://opensearch:9200"]'
OPENSEARCH_DASHBOARDS_PASSWORD: $OPENSEARCH__INITIAL_PASSWORD
volumes:
- opensearchdashboardsdata:/usr/share/opensearch-dashboards/data
container_name: opensearch-dashboards
hostname: opensearch-dashboards
networks:
- oam
healthcheck:
test: curl -u admin:$$OPENSEARCH_DASHBOARDS_PASSWORD --write-out 'HTTP %{http_code}' --fail --silent --output /dev/null http://localhost:5601/api/status
interval: 20s
retries: 10
opensearch-otelcollector:
image: otel/opentelemetry-collector-contrib:${OTEL__COLLECTOR_VERSION}
restart: unless-stopped
mem_limit: 128MB
depends_on:
opensearch:
condition: service_healthy
ports:
- 4318:4317
container_name: opensearch-otelcollector
hostname: opensearch-otelcollector
networks:
- oam
volumes:
- ./opensearch/otelcol:/etc/otelcol-contrib
data-prepper:
image: opensearchproject/data-prepper:${OPENSEARCH__DATAPREPPER_VERSION}
restart: unless-stopped
mem_limit: 512MB
depends_on:
opensearch:
condition: service_healthy
volumes:
- ./opensearch/data-prepper/pipelines.yml:/usr/share/data-prepper/pipelines/pipelines.yaml
container_name: data-prepper
hostname: data-prepper
networks:
- oam
networks:
oam:
volumes:
opensearchdata:
driver: local
opensearchdashboardsdata:
driver: local