2018-05-07 10:17:33 +00:00
|
|
|
version: '2.3'
|
2018-03-31 15:18:28 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
# ELK services
|
|
|
|
## Elasticsearch service
|
|
|
|
elasticsearch:
|
2018-05-04 16:29:55 +00:00
|
|
|
build: elasticsearch/.
|
2018-03-31 15:18:28 +00:00
|
|
|
container_name: elasticsearch
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- bootstrap.memory_lock=true
|
2020-06-21 21:11:21 +00:00
|
|
|
- ES_JAVA_OPTS=-Xms2048m -Xmx2048m
|
2018-05-16 14:57:52 +00:00
|
|
|
- ES_TMPDIR=/tmp
|
2018-03-31 15:18:28 +00:00
|
|
|
cap_add:
|
|
|
|
- IPC_LOCK
|
|
|
|
ulimits:
|
|
|
|
memlock:
|
|
|
|
soft: -1
|
|
|
|
hard: -1
|
|
|
|
nofile:
|
|
|
|
soft: 65536
|
|
|
|
hard: 65536
|
2018-06-07 14:39:13 +00:00
|
|
|
mem_limit: 4g
|
2018-03-31 15:18:28 +00:00
|
|
|
ports:
|
|
|
|
- "127.0.0.1:64298:9200"
|
2020-01-31 14:21:55 +00:00
|
|
|
image: "dtagdevsec/elasticsearch:2006"
|
2018-03-31 15:18:28 +00:00
|
|
|
volumes:
|
|
|
|
- /data:/data
|
|
|
|
|
|
|
|
## Kibana service
|
|
|
|
kibana:
|
2018-05-04 16:29:55 +00:00
|
|
|
build: kibana/.
|
2018-03-31 15:18:28 +00:00
|
|
|
container_name: kibana
|
|
|
|
restart: always
|
2018-04-19 22:38:45 +00:00
|
|
|
stop_signal: SIGKILL
|
2018-03-31 15:18:28 +00:00
|
|
|
depends_on:
|
|
|
|
elasticsearch:
|
|
|
|
condition: service_healthy
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:64296:5601"
|
2020-01-31 14:21:55 +00:00
|
|
|
image: "dtagdevsec/kibana:2006"
|
2018-03-31 15:18:28 +00:00
|
|
|
|
|
|
|
## Logstash service
|
|
|
|
logstash:
|
2018-05-04 16:29:55 +00:00
|
|
|
build: logstash/.
|
2018-03-31 15:18:28 +00:00
|
|
|
container_name: logstash
|
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
elasticsearch:
|
|
|
|
condition: service_healthy
|
|
|
|
env_file:
|
|
|
|
- /opt/tpot/etc/compose/elk_environment
|
2020-01-31 14:21:55 +00:00
|
|
|
image: "dtagdevsec/logstash:2006"
|
2018-03-31 15:18:28 +00:00
|
|
|
volumes:
|
|
|
|
- /data:/data
|
2020-02-03 12:59:21 +00:00
|
|
|
# - /root/tpotce/docker/elk/logstash/dist/logstash.conf:/etc/logstash/conf.d/logstash.conf
|
2018-03-31 15:18:28 +00:00
|
|
|
|
|
|
|
## Elasticsearch-head service
|
|
|
|
head:
|
2018-05-04 16:29:55 +00:00
|
|
|
build: head/.
|
2018-03-31 15:18:28 +00:00
|
|
|
container_name: head
|
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
elasticsearch:
|
|
|
|
condition: service_healthy
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:64302:9100"
|
2020-01-31 14:21:55 +00:00
|
|
|
image: "dtagdevsec/head:2006"
|
2018-04-19 22:38:45 +00:00
|
|
|
read_only: true
|