-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
123 lines (122 loc) · 3.34 KB
/
docker-compose.yml
File metadata and controls
123 lines (122 loc) · 3.34 KB
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
115
116
117
118
119
120
121
122
123
version: '3'
services:
opensearch-node:
restart: always
build:
context: ./opensearch
container_name: opensearch-node
environment:
cluster.name: opensearch-cluster
node.name: opensearch-node
discovery.seed_hosts: opensearch-node
# cluster.initial_master_nodes: opensearch-node
bootstrap.memory_lock: "true" # along with the memlock settings below, disables swapping
OPENSEARCH_JAVA_OPTS: "-Xms1g -Xmx1g"
DISABLE_INSTALL_DEMO_CONFIG: "true"
DISABLE_SECURITY_PLUGIN: "true"
discovery.type: single-node
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
volumes:
- opensearch-data1:/usr/share/opensearch/data
# - ./opensearch/opensearch-node1/config/opensearch.yml:/usr/share/opensearch/config/opensearch.yml:ro,Z
ports:
- 9200:9200
- 9600:9600 # required for Performance Analyzer
networks:
- opensearch-net
opensearch-dashboards:
restart: always
build:
context: ./opensearch-dashboards
container_name: opensearch-dashboards
ports:
- 5601:5601
expose:
- "5601"
environment:
DISABLE_SECURITY_DASHBOARDS_PLUGIN: "true"
DISABLE_INSTALL_DEMO_CONFIG: "true"
OPENSEARCH_HOSTS: '["http://opensearch-node:9200"]'
# volumes:
# - ./opensearch-dashboards/config/opensearch_dashboards.yml:/usr/share/opensearch-dashboards/config/opensearch_dashboards.yml:ro,Z
networks:
- opensearch-net
depends_on:
- opensearch-node
logstash:
build:
context: logstash/
volumes:
- ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro,Z
- ./logstash/pipeline:/usr/share/logstash/pipeline:ro,Z
ports:
- "5044:5044"
# - "5000:5000"
environment:
LS_JAVA_OPTS: -Xmx1g -Xms1g
LOGSTASH_INTERNAL_PASSWORD: ${LOGSTASH_INTERNAL_PASSWORD:-}
networks:
- opensearch-net
depends_on:
- opensearch-node
filebeat:
build:
context: filebeat/
args:
FILEBEAT_VERSION: ${FILEBEAT_VERSION}
# windows DACL
entrypoint: "filebeat -e -strict.perms=false"
volumes:
- ./filebeat/config/filebeat.yml:/usr/share/filebeat/filebeat.yml:rw,Z
- filebeat:/usr/share/filebeat
- application:/usr/share/application:rw,Z
- nginx:/usr/share/nginx:rw,Z
environment:
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD:-}
LOGSTASH_INTERNAL_PASSWORD: ${LOGSTASH_INTERNAL_PASSWORD:-}
KIBANA_SYSTEM_PASSWORD: ${KIBANA_SYSTEM_PASSWORD:-}
networks:
- opensearch-net
depends_on:
- logstash
application:
build:
context: application/
volumes:
- application:/usr/share/application:rw,Z
expose:
- "8080"
networks:
- opensearch-net
depends_on:
- filebeat
environment:
TZ: Asia/Seoul
nginx:
build:
context: nginx/
volumes:
- nginx:/usr/share/nginx:rw,Z
- ./nginx/static:/usr/share/nginx/html
- ./nginx/conf:/etc/nginx/
ports:
- "80:80"
networks:
- opensearch-net
depends_on:
- application
environment:
TZ: Asia/Seoul
volumes:
opensearch-data1:
application:
filebeat:
nginx:
networks:
opensearch-net: