mirror of
				https://github.com/wazuh/wazuh-docker.git
				synced 2025-11-04 05:53:16 +00:00 
			
		
		
		
	Indexer and dashboard user and workdir update
This commit is contained in:
		@@ -28,7 +28,7 @@ http {
 | 
				
			|||||||
    server_tokens off;
 | 
					    server_tokens off;
 | 
				
			||||||
    gzip  on;
 | 
					    gzip  on;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # kibana UI
 | 
					    # Dashboard UI
 | 
				
			||||||
    server {
 | 
					    server {
 | 
				
			||||||
        listen 80;
 | 
					        listen 80;
 | 
				
			||||||
        listen [::]:80;
 | 
					        listen [::]:80;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@ ARG WAZUH_VERSION=4.3.0-1
 | 
				
			|||||||
RUN apt-get update && apt install curl libcap2-bin -y
 | 
					RUN apt-get update && apt install curl libcap2-bin -y
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#Download and install Wazuh Dashboard
 | 
					#Download and install Wazuh Dashboard
 | 
				
			||||||
RUN curl https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-dashboard/wazuh-dashboard_${WAZUH_VERSION}_amd64.deb --output wazuh-dashboard_${WAZUH_VERSION}_amd64.deb && \
 | 
					RUN curl https://packages-dev.wazuh.com/pre-release/apt/pool/main/w/wazuh-dashboard/wazuh-dashboard_${WAZUH_VERSION}_amd64.deb --output wazuh-dashboard_${WAZUH_VERSION}_amd64.deb && \
 | 
				
			||||||
    dpkg -i wazuh-dashboard_${WAZUH_VERSION}_amd64.deb && \
 | 
					    dpkg -i wazuh-dashboard_${WAZUH_VERSION}_amd64.deb && \
 | 
				
			||||||
    apt-get clean -y && rm -rf wazuh-dashboard_${WAZUH_VERSION}_amd64.deb
 | 
					    apt-get clean -y && rm -rf wazuh-dashboard_${WAZUH_VERSION}_amd64.deb
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -57,6 +57,8 @@ RUN chmod 700 /entrypoint.sh
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
RUN chmod 700 /wazuh_app_config.sh
 | 
					RUN chmod 700 /wazuh_app_config.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN chown 1000:1000 /*.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPY --from=builder --chown=1000:1000 /usr/share/wazuh-dashboard /usr/share/wazuh-dashboard
 | 
					COPY --from=builder --chown=1000:1000 /usr/share/wazuh-dashboard /usr/share/wazuh-dashboard
 | 
				
			||||||
COPY --from=builder --chown=1000:1000 /run/wazuh-dashboard /run/wazuh-dashboard
 | 
					COPY --from=builder --chown=1000:1000 /run/wazuh-dashboard /run/wazuh-dashboard
 | 
				
			||||||
COPY --from=builder --chown=1000:1000 /etc/wazuh-dashboard /etc/wazuh-dashboard
 | 
					COPY --from=builder --chown=1000:1000 /etc/wazuh-dashboard /etc/wazuh-dashboard
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,4 +7,4 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/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/opensearch_dashboards.yml"
 | 
					/usr/share/wazuh-dashboard/bin/opensearch-dashboards -c /etc/wazuh-dashboard/opensearch_dashboards.yml
 | 
				
			||||||
@@ -49,6 +49,8 @@ COPY config/securityadmin.sh /
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
RUN chmod 700 /entrypoint.sh && chmod 700 /securityadmin.sh
 | 
					RUN chmod 700 /entrypoint.sh && chmod 700 /securityadmin.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN chown 1000:1000 /*.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPY --from=builder --chown=1000:1000 /debian/wazuh-indexer/usr/share/wazuh-indexer /usr/share/wazuh-indexer
 | 
					COPY --from=builder --chown=1000:1000 /debian/wazuh-indexer/usr/share/wazuh-indexer /usr/share/wazuh-indexer
 | 
				
			||||||
COPY --from=builder --chown=0:0 /debian/wazuh-indexer/usr/lib/systemd /usr/lib/systemd
 | 
					COPY --from=builder --chown=0:0 /debian/wazuh-indexer/usr/lib/systemd /usr/lib/systemd
 | 
				
			||||||
COPY --from=builder --chown=0:0 /debian/wazuh-indexer/usr/lib/sysctl.d /usr/lib/sysctl.d
 | 
					COPY --from=builder --chown=0:0 /debian/wazuh-indexer/usr/lib/sysctl.d /usr/lib/sysctl.d
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user