forked from wazuh/wazuh-docker
docker-compose.yml configuration fixes
This commit is contained in:
@@ -25,7 +25,9 @@ RUN chmod 700 /wazuh_app_config.sh
|
||||
|
||||
RUN chown 101:101 /etc/wazuh-dashboard/dashboard.yml && chmod 664 /etc/wazuh-dashboard/dashboard.yml
|
||||
|
||||
RUN chown -R 101:101 /usr/share/wazuh-dashboard/data/wazuh && chmod -R 775 /usr/share/wazuh-dashboard/data/wazuh
|
||||
RUN mkdir -p /usr/share/wazuh-dashboard/data/wazuh/config && chown -R 101:101 /usr/share/wazuh-dashboard/data/wazuh/config && chmod -R 775 /usr/share/wazuh-dashboard/data/wazuh/config
|
||||
|
||||
RUN mkdir -p /usr/share/wazuh-dashboard/data/wazuh/logs && chown -R 101:101 /usr/share/wazuh-dashboard/data/wazuh/logs && chmod -R 775 /usr/share/wazuh-dashboard/data/wazuh/logs
|
||||
|
||||
# Services ports
|
||||
EXPOSE 5601
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
# Start Wazuh dashboard
|
||||
##############################################################################
|
||||
|
||||
#/wazuh_app_config.sh
|
||||
/wazuh_app_config.sh
|
||||
|
||||
runuser wazuh-dashboard --shell="/bin/bash" --command="/usr/share/wazuh-dashboard/bin/opensearch-dashboards -c /etc/wazuh-dashboard/dashboard.yml"
|
||||
|
||||
@@ -8,7 +8,7 @@ api_password="${API_PASSWORD:-wazuh-wui}"
|
||||
|
||||
kibana_config_file="/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml"
|
||||
|
||||
cat << EOF >> $kibana_config_file
|
||||
cat << EOF > $kibana_config_file
|
||||
hosts:
|
||||
- 1513629884013:
|
||||
url: $wazuh_url
|
||||
@@ -16,3 +16,5 @@ hosts:
|
||||
username: $api_username
|
||||
password: $api_password
|
||||
EOF
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user