-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
94 lines (87 loc) · 2.07 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
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
# Wazuh App Copyright (C) 2020 Wazuh Inc. (License GPLv2)
version: '3'
services:
wazuh_master:
image: wazuh/wazuh:3.12.2_7.6.2
hostname: wazuh_master
restart: always
environment:
- CLUSTER_KEY=d1df710bdf0f2b3b2be9ea15be8f0ea8
volumes:
- "./wazuh-worker/etc:/wazuh-config-mount/etc"
- "./wazuh-worker/02-config_cluster.sh:/entrypoint-scripts/02-config_cluster.sh"
ports:
- "1514:1514/udp"
- "1515:1515"
- "514:514/udp"
- "55000:55000"
deploy:
mode: global
elasticsearch:
image: wazuh/wazuh-elasticsearch:3.12.2_7.6.2
hostname: elasticsearch
restart: always
ports:
- "9200:9200"
environment:
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- ELASTIC_CLUSTER=true
- CLUSTER_NODE_MASTER=true
- CLUSTER_MASTER_NODE_NAME=es01
ulimits:
memlock:
soft: -1
hard: -1
deploy:
resources:
limits:
memory: 4g
kibana:
image: wazuh/wazuh-kibana:3.12.2_7.6.2
hostname: kibana
restart: always
environment:
- "WAZUH_API_URL=https://wazuh_master"
depends_on:
- elasticsearch
nginx:
image: wazuh/wazuh-nginx:3.12.2_7.6.2
hostname: nginx
restart: always
environment:
- NGINX_PORT=443
- NGINX_CREDENTIALS
ports:
- "80:80"
- "443:443"
depends_on:
- kibana
wazuh_loadbalancer:
image: wazuh-loadbalancer
restart: always
environment:
- NGINX_PORT=443
depends_on:
- wazuh_worker
wazuh_worker:
image: wazuh/wazuh:3.12.2_7.6.2
restart: always
environment:
- CLUSTER_KEY=d1df710bdf0f2b3b2be9ea15be8f0ea8
volumes:
- "./wazuh-worker/etc:/wazuh-config-mount/etc"
- "./wazuh-worker/02-config_cluster.sh:/entrypoint-scripts/02-config_cluster.sh"
depends_on:
- wazuh_master
deploy:
replicas: 2
agent:
image: wazuh-agent
restart: always
environment:
- QUEUE_SIZE=10000 #max 100.000
- EVENTS_PER_SECOND=1000 #max 1000
depends_on:
- loadbalancer
deploy:
replicas: 10