Skip to content

Commit

Permalink
Merge pull request #93 from V1D1AN/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
V1D1AN authored Jan 23, 2023
2 parents bdfc6c4 + fe9eeef commit 48fdbc6
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 17 deletions.
22 changes: 22 additions & 0 deletions 01_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,26 @@ sed -i "s|RAM_DATA|$data_node|g" docker-compose.yml
echo
echo
echo "##########################################"
echo "########## CONFIGURING THEHIVE ###########"
echo "##########################################"
echo
echo
read -p "Enter the RAM in Go of TheHive [1]: " ram_thehive
ram_thehive=${ram_thehive:-1}
sed -i "s|RAM_THEHIVE|$ram_thehive|g" docker-compose.yml
echo
echo
echo "##########################################"
echo "########### CONFIGURING CORTEX ###########"
echo "##########################################"
echo
echo
read -p "Enter the RAM in Go of Cortex [1]: " ram_cortex
ram_cortex=${ram_cortex:-1}
sed -i "s|RAM_CORTEX|$ram_cortex|g" docker-compose.yml
echo
echo
echo "##########################################"
echo "######### CONFIGURING INTERFACES #########"
echo "##########################################"
echo
Expand Down Expand Up @@ -146,6 +166,8 @@ echo "The organization: $organization"
echo "The S1EM hostname: $s1em_hostname"
echo "The RAM of Master node of Elasticsearch: $master_node"
echo "The RAM of Data node of Elasticsearch: $data_node"
echo "The RAM of TheHive: $ram_thehive"
echo "The RAM of Cortex: $ram_cortex"
echo "The administration interface: $administration_interface"
echo "The administration ip: $ADMINISTRATION_IP"
echo "The monitoring interface: $monitoring_interface"
Expand Down
38 changes: 21 additions & 17 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
version: "2.2"
version: "3.3"
services:
certificates:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.7
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.8
container_name: certificates
volumes:
- certs:/usr/share/elasticsearch/config/certs
- ./instances.yml:/usr/share/elasticsearch/config/certs/instances.yml
- ./certs:/target_ca_cert_dir
- certs:/target_ca_cert_dir
user: "0"
networks:
- s1em
Expand Down Expand Up @@ -60,7 +60,7 @@ services:
- s1em

es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.7
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.8
container_name: es01
hostname: es01
restart: always
Expand Down Expand Up @@ -103,7 +103,7 @@ services:
hard: -1

es02:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.7
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.8
container_name: es02
hostname: es02
restart: always
Expand Down Expand Up @@ -142,7 +142,7 @@ services:
hard: -1

es03:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.7
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.8
container_name: es03
hostname: es03
restart: always
Expand Down Expand Up @@ -181,7 +181,7 @@ services:
hard: -1

filebeat:
image: 'docker.elastic.co/beats/filebeat:7.17.7'
image: 'docker.elastic.co/beats/filebeat:7.17.8'
container_name: filebeat
hostname: filebeat
user: root
Expand Down Expand Up @@ -211,7 +211,7 @@ services:
- s1em

kibana:
image: 'docker.elastic.co/kibana/kibana:7.17.7'
image: 'docker.elastic.co/kibana/kibana:7.17.8'
container_name: kibana
hostname: kibana
restart: always
Expand Down Expand Up @@ -239,7 +239,7 @@ services:
- s1em

auditbeat:
image: 'docker.elastic.co/beats/auditbeat:7.17.7'
image: 'docker.elastic.co/beats/auditbeat:7.17.8'
container_name: auditbeat
hostname: auditbeat
restart: always
Expand All @@ -266,7 +266,7 @@ services:
- s1em

heartbeat:
image: 'docker.elastic.co/beats/heartbeat:7.17.7'
image: 'docker.elastic.co/beats/heartbeat:7.17.8'
container_name: heartbeat
restart: always
hostname: heartbeat
Expand All @@ -284,7 +284,7 @@ services:
- s1em

metricbeat:
image: 'docker.elastic.co/beats/metricbeat:7.17.7'
image: 'docker.elastic.co/beats/metricbeat:7.17.8'
container_name: metricbeat
restart: always
depends_on:
Expand Down Expand Up @@ -315,7 +315,7 @@ services:
max-file: "3"

logstash:
image: 'docker.elastic.co/logstash/logstash:7.17.7'
image: 'docker.elastic.co/logstash/logstash:7.17.8'
container_name: logstash
hostname: logstash
restart: always
Expand Down Expand Up @@ -343,7 +343,7 @@ services:
container_name: fleet-server
hostname: fleet-server
user: root
image: docker.elastic.co/beats/elastic-agent:7.17.7
image: docker.elastic.co/beats/elastic-agent:7.17.8
environment:
- FLEET_SERVER_ENABLE=true
- FLEET_URL=https://${ADMINISTRATION_IP}:8220
Expand Down Expand Up @@ -528,6 +528,8 @@ services:
- ./rules/yara:/opt/rules/yara:ro
- certs:/opt/cortex/certificates:ro
- ./cortex/cacerts:/usr/local/openjdk-8/jre/lib/security/cacerts
environment:
- JVM_OPTS="-XmsRAM_CORTEXG -XmxRAM_CORTEXG"
logging:
driver: "json-file"
options:
Expand Down Expand Up @@ -574,8 +576,8 @@ services:
user: root
restart: always
depends_on:
cassandra:
condition: service_healthy
- cassandra
- es01
labels:
- "traefik.enable=true"
- "traefik.http.routers.thehive.rule=PathPrefix(`/thehive`)"
Expand All @@ -584,6 +586,8 @@ services:
volumes:
- ./thehive/application.conf:/etc/thehive/application.conf:ro
- thehivedata:/opt/data
environment:
- JVM_OPTS="-XmsRAM_THEHIVEG -XmxRAM_THEHIVEG"
logging:
driver: "json-file"
options:
Expand Down Expand Up @@ -1318,7 +1322,7 @@ services:
- CONNECTOR_LOG_LEVEL=info
- MWDB_URL=http://mwdb-web/
- MWDB_CONFIDENCE_LEVEL=40 # From 0 (Unknown) to 100 (Fully trusted)
- MWDB_INTERVAL=3 # In days, must be strictly greater than 1
- MWDB_INTERVAL=1 # In days, must be strictly greater than 1
- MWDB_TOKEN=${MWDB_API}
- MWDB_IMPORT_CONFIG=True
- MWDB_CREATE_INDICATORS=True
Expand All @@ -1327,7 +1331,7 @@ services:
- MWDB_ORG_DESCRIPTION=Cyber
- MWDB_ORG_NAME=${ORGANIZATION}
- MWDB_START_DATE=2022-04-01T00:00:00.000Z # ISO 8601
- MWDB_TAG_FILTER=*
- MWDB_TAG_FILTER=.*
- MWDB_MAX_START_RETENTION=6
logging:
driver: "json-file"
Expand Down

0 comments on commit 48fdbc6

Please sign in to comment.