Skip to content

Commit

Permalink
Fixing minor issues in compose files
Browse files Browse the repository at this point in the history
  • Loading branch information
f-galland committed Jul 11, 2024
1 parent 88b4285 commit d4ac52b
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 15 deletions.
3 changes: 2 additions & 1 deletion integrations/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
external
docker/certs
docker/certs
docker/config
22 changes: 11 additions & 11 deletions integrations/docker/.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ ELASTIC_PASSWORD=elastic
# Password for the 'kibana_system' user (at least 6 characters)
KIBANA_PASSWORD=elastic

# Version of Elastic products
STACK_VERSION=8.6.2

# Set the cluster name
CLUSTER_NAME=elastic

Expand All @@ -22,23 +19,26 @@ KIBANA_PORT=5602
# Increase or decrease based on the available host memory (in bytes)
MEM_LIMIT=1073741824

# OpenSearch destination cluster version
OS_VERSION=2.14.0

# Wazuh version
WAZUH_VERSION=4.7.5

# Wazuh Indexer version (Provisionally using OpenSearch)
WAZUH_INDEXER_VERSION=2.12.0
WAZUH_INDEXER_VERSION=2.14.0

# Wazuh Dashboard version (Provisionally using OpenSearch Dashboards)
WAZUH_DASHBOARD_VERSION=2.12.0
WAZUH_DASHBOARD_VERSION=2.14.0

# Wazuh certs generator version
WAZUH_CERTS_GENERATOR_VERSION=0.0.1

# Splunk version:
SPLUNK_VERSION=9.0.4
# OpenSearch destination cluster version
OS_VERSION=2.14.0

# Logstash version:
LOGSTASH_OSS_VERSION=8.9.0
LOGSTASH_OSS_VERSION=8.9.0

# Splunk version:
SPLUNK_VERSION=9.1.4

# Version of Elastic products
STACK_VERSION=8.14.3
2 changes: 1 addition & 1 deletion integrations/docker/compose.manager-elastic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ services:
args:
- LOGSTASH_OSS_VERSION=${LOGSTASH_OSS_VERSION}
environment:
LOGSTASH_OSS_VERSION=${LOGSTASH_OSS_VERSION}
LOGSTASH_OSS_VERSION: ${LOGSTASH_OSS_VERSION}
LOG_LEVEL: info
MONITORING_ENABLED: false
volumes:
Expand Down
30 changes: 30 additions & 0 deletions integrations/docker/compose.manager-opensearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ services:

wazuh.manager:
image: wazuh/wazuh-manager:${WAZUH_VERSION}
depends_on:
wazuh-certs-generator:
condition: service_completed_successfully
hostname: wazuh.manager
restart: always
ulimits:
Expand Down Expand Up @@ -89,11 +92,38 @@ services:
- ./certs/wazuh.indexer-key.pem:/usr/share/opensearch/config/wazuh.indexer-key.pem
- ./certs/root-ca.pem:/usr/share/opensearch/config/root-ca.pem

generate-certs-config:
image: alpine:latest
volumes:
- ./config:/config
command: |
sh -c "
echo '
nodes:
indexer:
- name: wazuh.indexer
ip: \"wazuh.indexer\"
- name: opensearch.node
ip: \"opensearch.node\"
server:
- name: wazuh.manager
ip: \"wazuh.manager\"
dashboard:
- name: wazuh.dashboard
ip: \"wazuh.dashboard\"
- name: opensearch.dashboards
ip: \"opensearch.dashboards\"
' > /config/certs.yml
"
wazuh-certs-generator:
image: wazuh/wazuh-certs-generator:${WAZUH_CERTS_GENERATOR_VERSION}
hostname: wazuh-certs-generator
environment:
- WAZUH_CERTS_GENERATOR_VERSION=${WAZUH_CERTS_GENERATOR_VERSION}
depends_on:
generate-certs-config:
condition: service_completed_successfully
entrypoint: sh -c "/entrypoint.sh; chown -R 1000:999 /certificates; chmod 740 /certificates; chmod 440 /certificates/*"
volumes:
- ./certs/:/certificates/
Expand Down
4 changes: 2 additions & 2 deletions integrations/docker/compose.manager-splunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ services:
condition: service_healthy
wazuh-certs-generator:
condition: service_completed_successfully
image: logstash-oss:${STACK_VERSION}
image: logstash-oss:${LOGSTASH_OSS_VERSION}
build:
context: ../logstash
args:
- LOGSTASH_OSS_VERSION=${LOGSTASH_OSS_VERSION}
environment:
STACK_VERSION: ${STACK_VERSION}
LOGSTASH_OSS_VERSION: ${LOGSTASH_OSS_VERSION}
LOG_LEVEL: info
MONITORING_ENABLED: false
volumes:
Expand Down

0 comments on commit d4ac52b

Please sign in to comment.