-
Notifications
You must be signed in to change notification settings - Fork 1
/
opensearch.yml
103 lines (97 loc) · 2.74 KB
/
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
96
97
98
99
100
101
102
103
# This docker-compose file launches a minimal opensearch stack:
# - opensearch engine
# - opensearch dashboards
# - logstash
#
# In addition it adds overlay configs to various of the merritt micro-service containers
# to add logging configuration options. This sets up log indexing for these containers.
#
version: '3'
volumes:
apps-logs-ingest:
apps-logs-store:
apps-logs-inventory:
apps-logs-audit:
apps-logs-replic:
apps-logs-ui:
networks:
merrittnet:
services:
opensearch:
image: opensearchproject/opensearch
container_name: opensearch
environment:
- cluster.name=opensearch-cluster
- node.name=opensearch
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "OPENSEARCH_JAVA_OPTS=-Xms4096m -Xmx4096m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
- "discovery.type=single-node" # disables bootstrap checks that are enabled when network.host is set to a non-loopback address
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:
- published: 9200
target: 9200
networks:
merrittnet:
restart: unless-stopped
logstash:
image: opensearchproject/logstash-oss-with-opensearch-output-plugin
container_name: logstash
ports:
- published: 5044
target: 5044
- published: 12201
target: 12201
protocol: udp
networks:
merrittnet:
volumes:
- "./opensearch/logstash/logstash.conf:/usr/share/logstash/pipeline/logstash.conf"
- "apps-logs-ingest:/logfiles/ingest/"
- "apps-logs-store:/logfiles/store/"
- "apps-logs-inventory:/logfiles/inventory/"
- "apps-logs-audit:/logfiles/audit/"
- "apps-logs-replic:/logfiles/replic/"
- "apps-logs-ui:/logfiles/ui/"
depends_on:
- opensearch
restart: unless-stopped
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards
container_name: opensearch-dashboards
ports:
- published: 8094
target: 5601
expose:
- "8094"
environment:
- 'OPENSEARCH_HOSTS=["https://opensearch:9200"]'
networks:
merrittnet:
depends_on:
- opensearch
- logstash
restart: unless-stopped
ingest:
volumes:
- "apps-logs-ingest:/usr/local/tomcat/logs/"
store:
volumes:
- "apps-logs-store:/usr/local/tomcat/logs/"
inventory:
volumes:
- "apps-logs-inventory:/usr/local/tomcat/logs/"
ui:
volumes:
- "apps-logs-ui:/var/www/app_name/log/"
replic:
volumes:
- "apps-logs-replic:/usr/local/tomcat/logs/"
audit:
volumes:
- "apps-logs-audit:/usr/local/tomcat/logs/"