forked from wazuh/wazuh-docker
Without linking the containers with explicitly declared container name mappings, the "elasticsearch" hostname is not being resolved by the kibana or logstash containers. This fixes that.
74 lines
1.6 KiB
YAML
74 lines
1.6 KiB
YAML
version: '2'
|
|
|
|
services:
|
|
wazuh:
|
|
image: wazuh/wazuh
|
|
hostname: wazuh-manager
|
|
restart: always
|
|
ports:
|
|
- "1514:1514/udp"
|
|
- "1515:1515"
|
|
- "514:514/udp"
|
|
- "55000:55000"
|
|
networks:
|
|
- docker_elk
|
|
# volumes:
|
|
# - my-path:/var/ossec/data
|
|
# - my-path:/etc/postfix
|
|
depends_on:
|
|
- elasticsearch
|
|
logstash:
|
|
image: wazuh/wazuh-logstash
|
|
hostname: logstash
|
|
restart: always
|
|
command: -f /etc/logstash/conf.d/
|
|
# volumes:
|
|
# - my-path:/etc/logstash/conf.d
|
|
links:
|
|
- kibana
|
|
- elasticsearch:elasticsearch
|
|
ports:
|
|
- "5000:5000"
|
|
networks:
|
|
- docker_elk
|
|
depends_on:
|
|
- elasticsearch
|
|
environment:
|
|
- LS_HEAP_SIZE=2048m
|
|
elasticsearch:
|
|
image: elasticsearch:5.5.1
|
|
hostname: elasticsearch
|
|
restart: always
|
|
command: elasticsearch -E node.name="node-1" -E cluster.name="wazuh" -E network.host=0.0.0.0
|
|
ports:
|
|
- "9200:9200"
|
|
- "9300:9300"
|
|
environment:
|
|
ES_JAVA_OPTS: "-Xms2g -Xmx2g"
|
|
# volumes:
|
|
# - my-path:/usr/share/elasticsearch/data
|
|
networks:
|
|
- docker_elk
|
|
kibana:
|
|
image: wazuh/wazuh-kibana
|
|
hostname: kibana
|
|
restart: always
|
|
ports:
|
|
- "5601:5601"
|
|
networks:
|
|
- docker_elk
|
|
depends_on:
|
|
- elasticsearch
|
|
links:
|
|
- elasticsearch:elasticsearch
|
|
entrypoint: sh wait-for-it.sh elasticsearch
|
|
# environment:
|
|
# - "WAZUH_KIBANA_PLUGIN_URL=http://your.repo/wazuhapp-2.0_5.4.2.zip"
|
|
|
|
networks:
|
|
docker_elk:
|
|
driver: bridge
|
|
ipam:
|
|
config:
|
|
- subnet: 172.25.0.0/24
|