This commit is contained in:
brow3c
2021-06-22 16:04:49 +09:00
parent 4181a69dc2
commit e12f6d9f42
2 changed files with 53 additions and 72 deletions

View File

@@ -1,72 +1,58 @@
version: '3.2' version: "3.1"
services: services:
elasticsearch: bro-nginx:
build: image: nginx:alpine
context: elasticsearch/ container_name: bro-nginx
args:
ELK_VERSION: $ELK_VERSION
volumes:
- type: bind
source: ./elasticsearch/config/elasticsearch.yml
target: /usr/share/elasticsearch/config/elasticsearch.yml
read_only: true
- type: volume
source: elasticsearch
target: /usr/share/elasticsearch/data
ports: ports:
- "9200:9200" - "32100:80"
- "9300:9300" - "449"
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
ELASTIC_PASSWORD: dkrnffkwjdghk
# Use single node discovery in order to disable production mode and avoid bootstrap checks.
# see: https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
discovery.type: single-node
logstash:
build:
context: logstash/
args:
ELK_VERSION: $ELK_VERSION
volumes: volumes:
- type: bind - ./nginx/spiduler.conf:/etc/nginx/conf.d/default.conf
source: ./logstash/config/logstash.yml restart: unless-stopped
target: /usr/share/logstash/config/logstash.yml
read_only: true
- type: bind
source: ./logstash/pipeline
target: /usr/share/logstash/pipeline
read_only: true
ports:
- "5044:5044"
- "5000:5000/tcp"
- "5000:5000/udp"
- "9600:9600"
environment:
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
depends_on: depends_on:
- elasticsearch - bro-gateway
kibana: bro-gateway:
build: image: node:lts-alpine
context: kibana/ container_name: bro-gateway
args:
ELK_VERSION: $ELK_VERSION
volumes: volumes:
- type: bind - ../../:/var/www/spiduler
source: ./kibana/config/kibana.yml entrypoint: node /var/www/spiduler/bro-app-gateway
target: /usr/share/kibana/config/kibana.yml restart: unless-stopped
read_only: true
ports: bro-browser:
- "5601:5601" image: node:lts-alpine
container_name: bro-browser
volumes:
- ../../:/var/www/spiduler
entrypoint: node /var/www/spiduler/bro-app-browser
restart: unless-stopped
depends_on: depends_on:
- elasticsearch - bro-nginx
- bro-chrome
bro-tor:
image: dperson/torproxy
container_name: bro-tor
hostname: bro-tor
privileged: true
shm_size: 2g
restart: unless-stopped
bro-chrome:
image: selenium/standalone-chrome
container_name: bro-chrome
hostname: bro-chrome
privileged: true
shm_size: 2g
restart: unless-stopped
# environment:
# - HUB_HOST=bro-chrome
# - HUB_PORT=4444
# - JAVA_OPTS=-Dwebdriver.chrome.whitelistedIps=
# - SE_OPTS=-debug
networks: networks:
default: default:
name: bro name: bro
external: true
volumes:
elasticsearch:

View File

@@ -23,8 +23,6 @@ services:
# Use single node discovery in order to disable production mode and avoid bootstrap checks. # Use single node discovery in order to disable production mode and avoid bootstrap checks.
# see: https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html # see: https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
discovery.type: single-node discovery.type: single-node
networks:
- elk
logstash: logstash:
build: build:
@@ -47,8 +45,6 @@ services:
- "9600:9600" - "9600:9600"
environment: environment:
LS_JAVA_OPTS: "-Xmx256m -Xms256m" LS_JAVA_OPTS: "-Xmx256m -Xms256m"
networks:
- elk
depends_on: depends_on:
- elasticsearch - elasticsearch
@@ -64,14 +60,13 @@ services:
read_only: true read_only: true
ports: ports:
- "5601:5601" - "5601:5601"
networks:
- elk
depends_on: depends_on:
- elasticsearch - elasticsearch
networks: networks:
elk: default:
driver: bridge name: bro
external: true
volumes: volumes:
elasticsearch: elasticsearch: