-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (60 loc) · 1.93 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
services:
go-service:
build:
context: ./services/golang
container_name: golang-service
command: "./main"
depends_on:
- otel-collector
otel-collector:
image: otel/opentelemetry-collector:0.108.0
container_name: otel-collector
command: [--config=/etc/otel-collector-config.yaml]
volumes:
- ./opentelemetry/otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- "4317:4317"
depends_on:
- data-prepper
data-prepper:
image: opensearchproject/data-prepper:2.9.0
container_name: data-prepper
volumes:
- ./opensearch/dataprepper/pipelines.yaml:/usr/share/data-prepper/pipelines/pipelines.yaml
- ./opensearch/dataprepper/data-prepper-config.yaml:/usr/share/data-prepper/config/data-prepper-config.yaml
ports:
- "21890:21890" # port traces
- "21891:21891" # port metrics
depends_on:
- "opensearch"
dashboards:
build:
context: ./opensearch/dashboard
container_name: dashboard-opensearch
ports:
- "5601:5601"
expose:
- "5601"
environment:
OPENSEARCH_HOSTS: '["http://opensearch:9200"]'
depends_on:
- opensearch
opensearch:
image: opensearchproject/opensearch:2.9.0
container_name: opensearch
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=AeK2CS4*sdKCS5*Kx6g77b##dDD@jfgdess
- DISABLE_SECURITY_PLUGIN=true
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536 # maximum number of open files for the OpenSearch user, set to at least 65536 on modern systems
hard: 65536
ports:
- 9200:9200
- 9600:9600 # required for Performance Analyzer