Adds the two Dockerfiles nextcloud's compose build: contexts were
already referencing but never had (custom smbclient support for the
main container, a documentserver base for euro-office) - both had
their real internal-CA-trust mechanism replaced with a comment
explaining what's there and why, per the standing rule against
publishing that detail.
Also fixes a compose bug: kodi-ma-bridge's `environment:` key had
been dropped, leaving KEY=value pairs nested under `env_file:` (which
expects file paths, not inline vars) - would have made docker-compose
try to open a file literally named `TZ=${TZ}`.
Rest of this commit is manual cleanup (comment tidying, dropped
personal media-library volume mounts, a couple of .env comment
trims).
106 lines
4.3 KiB
YAML
106 lines
4.3 KiB
YAML
name: single-node
|
|
services:
|
|
wazuh.manager:
|
|
image: wazuh/wazuh-manager:4.14.6
|
|
hostname: wazuh.manager
|
|
restart: always
|
|
ulimits:
|
|
memlock:
|
|
soft: -1
|
|
hard: -1
|
|
nofile:
|
|
soft: 655360
|
|
hard: 655360
|
|
ports:
|
|
- "1514:1514"
|
|
- "1515:1515"
|
|
- "514:514/udp"
|
|
- "55000:55000"
|
|
env_file:
|
|
- .env.secrets
|
|
environment:
|
|
- TZ=${TZ}
|
|
- INDEXER_URL=https://wazuh.indexer:9200
|
|
- INDEXER_USERNAME=admin
|
|
- FILEBEAT_SSL_VERIFICATION_MODE=full
|
|
- SSL_CERTIFICATE_AUTHORITIES=/etc/ssl/root-ca.pem
|
|
- SSL_CERTIFICATE=/etc/ssl/filebeat.pem
|
|
- SSL_KEY=/etc/ssl/filebeat.key
|
|
- API_USERNAME=wazuh-wui
|
|
volumes:
|
|
- /path/to/wazuh/manager/api_configuration:/var/ossec/api/configuration
|
|
- /path/to/wazuh/manager/etc:/var/ossec/etc
|
|
- /path/to/wazuh/manager/logs:/var/ossec/logs
|
|
- /path/to/wazuh/manager/queue:/var/ossec/queue
|
|
- /path/to/wazuh/manager/var_multigroups:/var/ossec/var/multigroups
|
|
- /path/to/wazuh/manager/integrations:/var/ossec/integrations
|
|
- /path/to/wazuh/manager/active_response:/var/ossec/active-response/bin
|
|
- /path/to/wazuh/manager/agentless:/var/ossec/agentless
|
|
- /path/to/wazuh/manager/wodles:/var/ossec/wodles
|
|
- /path/to/wazuh/manager/filebeat_etc:/etc/filebeat
|
|
- /path/to/wazuh/manager/filebeat_var:/var/lib/filebeat
|
|
- ./config/wazuh_indexer_ssl_certs/root-ca-manager.pem:/etc/ssl/root-ca.pem
|
|
- ./config/wazuh_indexer_ssl_certs/wazuh.manager.pem:/etc/ssl/filebeat.pem
|
|
- ./config/wazuh_indexer_ssl_certs/wazuh.manager-key.pem:/etc/ssl/filebeat.key
|
|
- ./config/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf
|
|
|
|
wazuh.indexer:
|
|
image: wazuh/wazuh-indexer:4.14.6
|
|
hostname: wazuh.indexer
|
|
restart: always
|
|
ports:
|
|
- "9200:9200"
|
|
environment:
|
|
- TZ=${TZ}
|
|
- "OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g"
|
|
ulimits:
|
|
memlock:
|
|
soft: -1
|
|
hard: -1
|
|
nofile:
|
|
soft: 65536
|
|
hard: 65536
|
|
volumes:
|
|
- /path/to/wazuh/indexer/data:/var/lib/wazuh-indexer
|
|
- ./config/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
|
|
- ./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
|
|
- ./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
|
|
- ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/config/opensearch-security/internal_users.yml
|
|
|
|
wazuh.dashboard:
|
|
image: wazuh/wazuh-dashboard:4.14.6
|
|
hostname: wazuh.dashboard
|
|
restart: always
|
|
ports:
|
|
- 443:5601
|
|
env_file:
|
|
- .env.secrets
|
|
environment:
|
|
- TZ=${TZ}
|
|
- INDEXER_USERNAME=admin
|
|
- WAZUH_API_URL=https://wazuh.manager
|
|
- DASHBOARD_USERNAME=kibanaserver
|
|
- API_USERNAME=wazuh-wui
|
|
entrypoint:
|
|
- /bin/sh
|
|
- -c
|
|
- |
|
|
sed "s/__API_USERNAME__/$$API_USERNAME/;s/__API_PASSWORD__/$$API_PASSWORD/" /wazuh-config-mount/wazuh.yml.tpl > /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml
|
|
exec /entrypoint.sh
|
|
volumes:
|
|
- ./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
|
|
- ./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
|
|
- ./config/wazuh_dashboard/wazuh.yml.tpl:/wazuh-config-mount/wazuh.yml.tpl:ro
|
|
- /path/to/wazuh/dashboard/config:/usr/share/wazuh-dashboard/data/wazuh/config
|
|
- /path/to/wazuh/dashboard/custom:/usr/share/wazuh-dashboard/plugins/wazuh/public/assets/custom
|
|
depends_on:
|
|
- wazuh.indexer
|
|
links:
|
|
- wazuh.indexer:wazuh.indexer
|
|
- wazuh.manager:wazuh.manager
|