mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-02 04:53:16 +00:00
102 lines
2.2 KiB
YAML
102 lines
2.2 KiB
YAML
# Wazuh App Copyright (C) 2018 Wazuh Inc. (License GPLv2)
|
|
version: '2'
|
|
|
|
services:
|
|
wazuh:
|
|
image: wazuh/wazuh:3.7.0_6.5.0
|
|
hostname: wazuh-manager
|
|
restart: always
|
|
ports:
|
|
- "1514:1514/udp"
|
|
- "1515:1515"
|
|
- "514:514/udp"
|
|
- "55000:55000"
|
|
# - "1516:1516"
|
|
networks:
|
|
- docker_elk
|
|
# volumes:
|
|
# - my-path:/var/ossec/data:Z
|
|
# - my-path:/etc/postfix:Z
|
|
# - my-path:/etc/filebeat
|
|
# - my-custom-config-path/ossec.conf:/wazuh-config-mount/etc/ossec.conf
|
|
# command: ["echo 'hello world'"]
|
|
depends_on:
|
|
- logstash
|
|
logstash:
|
|
image: wazuh/wazuh-logstash:3.7.0_6.5.0
|
|
hostname: logstash
|
|
restart: always
|
|
# volumes:
|
|
# - my-path:/etc/logstash/conf.d:Z
|
|
links:
|
|
- elasticsearch:elasticsearch
|
|
ports:
|
|
- "5000:5000"
|
|
networks:
|
|
- docker_elk
|
|
depends_on:
|
|
- elasticsearch
|
|
environment:
|
|
- LS_HEAP_SIZE=2048m
|
|
elasticsearch:
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.0
|
|
hostname: elasticsearch
|
|
restart: always
|
|
ports:
|
|
- "9200:9200"
|
|
# - "9300:9300"
|
|
environment:
|
|
- node.name=node-1
|
|
- cluster.name=wazuh
|
|
- network.host=0.0.0.0
|
|
- bootstrap.memory_lock=true
|
|
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
|
|
ulimits:
|
|
memlock:
|
|
soft: -1
|
|
hard: -1
|
|
mem_limit: 2g
|
|
# volumes:
|
|
# - my-path:/usr/share/elasticsearch/data:Z
|
|
networks:
|
|
- docker_elk
|
|
kibana:
|
|
image: wazuh/wazuh-kibana:3.7.0_6.5.0
|
|
hostname: kibana
|
|
restart: always
|
|
# ports:
|
|
# - "5601:5601"
|
|
# environment:
|
|
# - ELASTICSEARCH_URL=http://elasticsearch:9200
|
|
networks:
|
|
- docker_elk
|
|
depends_on:
|
|
- elasticsearch
|
|
links:
|
|
- elasticsearch:elasticsearch
|
|
- wazuh:wazuh
|
|
nginx:
|
|
image: wazuh/wazuh-nginx:3.7.0_6.5.0
|
|
hostname: nginx
|
|
restart: always
|
|
environment:
|
|
- NGINX_PORT=443
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
# volumes:
|
|
# - my-path:/etc/nginx/conf.d:Z
|
|
networks:
|
|
- docker_elk
|
|
depends_on:
|
|
- kibana
|
|
links:
|
|
- kibana:kibana
|
|
|
|
networks:
|
|
docker_elk:
|
|
driver: bridge
|
|
ipam:
|
|
config:
|
|
- subnet: 172.25.0.0/24
|