finished first itiration of Wazuh
This commit is contained in:
@@ -110,7 +110,20 @@
|
|||||||
# - 7359:7359/udp #optional
|
# - 7359:7359/udp #optional
|
||||||
# - 1900:1900/udp #optional
|
# - 1900:1900/udp #optional
|
||||||
|
|
||||||
|
#---- Genearate Wuzah docker certs ---#
|
||||||
|
- name: Generate Wazuh certs
|
||||||
|
containers.podman.podman_container:
|
||||||
|
image: wazuh/wazuh-certs-generator:0.0.3
|
||||||
|
name: wazuh-certs-generator
|
||||||
|
env:
|
||||||
|
CERT_TOOL_VERSION: 4.14
|
||||||
|
command: "generator"
|
||||||
|
volumes:
|
||||||
|
- /opt/apps/wazuh/config/wazuh_indexer_ssl_certs/:/certificates/
|
||||||
|
- /opt/apps/wazuh/config/certs.yml:/config/certs.yml
|
||||||
|
|
||||||
#----Wazuh-docker deploy---#
|
#----Wazuh-docker deploy---#
|
||||||
|
|
||||||
- name: Deploy Wazuh Manager
|
- name: Deploy Wazuh Manager
|
||||||
containers.podman.podman_container:
|
containers.podman.podman_container:
|
||||||
image: wazuh/wazuh-manager:5.0.0
|
image: wazuh/wazuh-manager:5.0.0
|
||||||
@@ -145,9 +158,7 @@
|
|||||||
- /opt/apps/wazuh/config/wazuh_indexer_ssl_certs/wazuh.manager.pem:/etc/ssl/filebeat.pem
|
- /opt/apps/wazuh/config/wazuh_indexer_ssl_certs/wazuh.manager.pem:/etc/ssl/filebeat.pem
|
||||||
- /opt/apps/wazuh/config/wazuh_indexer_ssl_certs/wazuh.manager-key.pem:/etc/ssl/filebeat.key
|
- /opt/apps/wazuh/config/wazuh_indexer_ssl_certs/wazuh.manager-key.pem:/etc/ssl/filebeat.key
|
||||||
- /opt/apps/wazuh/config/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf
|
- /opt/apps/wazuh/config/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf
|
||||||
network:
|
|
||||||
- npm_internal
|
|
||||||
ip: '10.10.0.36'
|
|
||||||
ports:
|
ports:
|
||||||
- "1514:1514"
|
- "1514:1514"
|
||||||
- "1515:1515"
|
- "1515:1515"
|
||||||
@@ -159,60 +170,59 @@
|
|||||||
containers.podman.podman_container:
|
containers.podman.podman_container:
|
||||||
image: wazuh/wazuh-indexer:5.0.0
|
image: wazuh/wazuh-indexer:5.0.0
|
||||||
name: wazuh.indexer
|
name: wazuh.indexer
|
||||||
|
env:
|
||||||
|
OENSEARCH_JAVA_OPTS: "-Xms1g -Xmx1g"
|
||||||
wazuh.indexer:
|
ulimits:
|
||||||
image: wazuh/wazuh-indexer:5.0.0
|
- "memlock:-1:-1"
|
||||||
hostname: wazuh.indexer
|
- "nofile:655360:655360"
|
||||||
restart: always
|
restart_policy: true
|
||||||
|
recreate: true
|
||||||
|
state: started
|
||||||
ports:
|
ports:
|
||||||
- "9200:9200"
|
- "9200:9200"
|
||||||
environment:
|
|
||||||
- "OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g"
|
|
||||||
ulimits:
|
|
||||||
memlock:
|
|
||||||
soft: -1
|
|
||||||
hard: -1
|
|
||||||
nofile:
|
|
||||||
soft: 65536
|
|
||||||
hard: 65536
|
|
||||||
volumes:
|
volumes:
|
||||||
- wazuh-indexer-data:/var/lib/wazuh-indexer
|
- /opt/apps/wazuh/wazah-indexer-data/ib/wazuh-indexer
|
||||||
- ./config/wazuh_indexer_ssl_certs/root-ca.pem:/usr/share/wazuh-indexer/config/certs/root-ca.pem
|
- /opt/apps/wazuhconfig/wazuh_indexer_ssl_certs/root-ca.pem:/usr/share/wazuh-indexer/config/certs/root-ca.pem
|
||||||
- ./config/wazuh_indexer_ssl_certs/wazuh.indexer-key.pem:/usr/share/wazuh-indexer/config/certs/wazuh.indexer.key
|
- /opt/apps/wazuh/config/wazuh_indexer_ssl_certs/wazuh.indexer-key.pem:/usr/share/wazuh-indexer/config/certs/wazuh.indexer.key
|
||||||
- ./config/wazuh_indexer_ssl_certs/wazuh.indexer.pem:/usr/share/wazuh-indexer/config/certs/wazuh.indexer.pem
|
- /opt/apps/wazuh/config/wazuh_indexer_ssl_certs/wazuh.indexer.pem:/usr/share/wazuh-indexer/config/certs/wazuh.indexer.pem
|
||||||
- ./config/wazuh_indexer_ssl_certs/admin.pem:/usr/share/wazuh-indexer/config/certs/admin.pem
|
- /opt/apps/wazuh/config/wazuh_indexer_ssl_certs/admin.pem:/usr/share/wazuh-indexer/config/certs/admin.pem
|
||||||
- ./config/wazuh_indexer_ssl_certs/admin-key.pem:/usr/share/wazuh-indexer/config/certs/admin-key.pem
|
- /opt/apps/wazuh/config/wazuh_indexer_ssl_certs/admin-key.pem:/usr/share/wazuh-indexer/config/certs/admin-key.pem
|
||||||
- ./config/wazuh_indexer/wazuh.indexer.yml:/usr/share/wazuh-indexer/config/opensearch.yml
|
- /opt/apps/wazuh/config/wazuh_indexer/wazuh.indexer.yml:/usr/share/wazuh-indexer/config/opensearch.yml
|
||||||
- ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/config/opensearch-security/internal_users.yml
|
- /opt/apps/wazuh/config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/config/opensearch-security/internal_users.yml
|
||||||
|
|
||||||
wazuh.dashboard:
|
- name: Deploy Wazuh Dashboard
|
||||||
|
containers.podman.podman_container:
|
||||||
image: wazuh/wazuh-dashboard:5.0.0
|
image: wazuh/wazuh-dashboard:5.0.0
|
||||||
hostname: wazuh.dashboard
|
name: wazuh.dashboard
|
||||||
restart: always
|
env:
|
||||||
|
INDEXER_USERNAME: admin
|
||||||
|
INDEXER_PASSWORD: SecretPassword
|
||||||
|
WAZUH_API_URL: https://wazuh.manager
|
||||||
|
DASHBOARD_USERNAME: kibanaserver
|
||||||
|
DASHBOARD_PASSWORD: kibanaserver
|
||||||
|
API_USERNAME: wazuh-wui
|
||||||
|
API_PASSWORD: "MyS3cr37P450r.*-""
|
||||||
|
ulimits:
|
||||||
|
- "memlock:-1:-1"
|
||||||
|
- "nofile:655360:655360"
|
||||||
|
restart_policy: true
|
||||||
|
recreate: true
|
||||||
|
state: started
|
||||||
ports:
|
ports:
|
||||||
- 443:5601
|
- "443:5601"
|
||||||
environment:
|
|
||||||
- INDEXER_USERNAME=admin
|
|
||||||
- INDEXER_PASSWORD=SecretPassword
|
|
||||||
- WAZUH_API_URL=https://wazuh.manager
|
|
||||||
- DASHBOARD_USERNAME=kibanaserver
|
|
||||||
- DASHBOARD_PASSWORD=kibanaserver
|
|
||||||
- API_USERNAME=wazuh-wui
|
|
||||||
- API_PASSWORD=MyS3cr37P450r.*-
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./config/wazuh_indexer_ssl_certs/wazuh.dashboard.pem:/usr/share/wazuh-dashboard/certs/wazuh-dashboard.pem
|
- /opt/apps/wazuh/config/wazuh_indexer_ssl_certs/wazuh.dashboard.pem:/usr/share/wazuh-dashboard/certs/wazuh-dashboard.pem
|
||||||
- ./config/wazuh_indexer_ssl_certs/wazuh.dashboard-key.pem:/usr/share/wazuh-dashboard/certs/wazuh-dashboard-key.pem
|
- /opt/apps/wazuh/config/wazuh_indexer_ssl_certs/wazuh.dashboard-key.pem:/usr/share/wazuh-dashboard/certs/wazuh-dashboard-key.pem
|
||||||
- ./config/wazuh_indexer_ssl_certs/root-ca.pem:/usr/share/wazuh-dashboard/certs/root-ca.pem
|
- /opt/apps/wazuh/config/wazuh_indexer_ssl_certs/root-ca.pem:/usr/share/wazuh-dashboard/certs/root-ca.pem
|
||||||
- ./config/wazuh_dashboard/opensearch_dashboards.yml:/usr/share/wazuh-dashboard/config/opensearch_dashboards.yml
|
- /opt/apps/wazuh/config/wazuh_dashboard/opensearch_dashboards.yml:/usr/share/wazuh-dashboard/config/opensearch_dashboards.yml
|
||||||
- ./config/wazuh_dashboard/wazuh.yml:/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml
|
- /opt/apps/wazuh/config/wazuh_dashboard/wazuh.yml:/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml
|
||||||
- wazuh-dashboard-config:/usr/share/wazuh-dashboard/data/wazuh/config
|
- /opt/apps/wazuh/wazuh-dashboard-config:/usr/share/wazuh-dashboard/data/wazuh/config
|
||||||
- wazuh-dashboard-custom:/usr/share/wazuh-dashboard/plugins/wazuh/public/assets/custom
|
- /opt/apps/wazuh/wazuh-dashboard-custom:/usr/share/wazuh-dashboard/plugins/wazuh/public/assets/custom
|
||||||
depends_on:
|
network:
|
||||||
- wazuh.indexer
|
- npm_internal
|
||||||
links:
|
ip: '10.10.0.36'
|
||||||
- wazuh.indexer:wazuh.indexer
|
|
||||||
- wazuh.manager:wazuh.manager
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user