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
|
|
|
|
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
|
|
|
|
cap_add:
|
|
|
|
- IPC_LOCK
|
|
|
|
ulimits:
|
|
|
|
memlock:
|
|
|
|
soft: -1
|
|
|
|
hard: -1
|
|
|
|
nofile:
|
|
|
|
soft: 65536
|
|
|
|
hard: 65536
|
|
|
|
mem_limit: 2g
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:64298:9200"
|
|
|
|
image: "dtagdevsec/elasticsearch:1804"
|
|
|
|
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"
|
|
|
|
image: "dtagdevsec/kibana:1804"
|
|
|
|
|
|
|
|
## 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
|
|
|
|
image: "dtagdevsec/logstash:1804"
|
|
|
|
volumes:
|
|
|
|
- /data:/data
|
|
|
|
- /var/log:/data/host/log
|
2018-04-19 22:38:45 +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"
|
|
|
|
image: "dtagdevsec/head:1804"
|
2018-04-19 22:38:45 +00:00
|
|
|
read_only: true
|