2022-01-03 18:24:17 +00:00
|
|
|
# T-Pot (Hive)
|
|
|
|
# Do not erase ports sections, these are used by /opt/tpot/bin/rules.sh to setup iptables ACCEPT rules for NFQ (honeytrap / glutton)
|
|
|
|
version: '2.3'
|
|
|
|
|
|
|
|
networks:
|
|
|
|
spiderfoot_local:
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
##################
|
|
|
|
#### Tools
|
|
|
|
##################
|
|
|
|
|
|
|
|
#### ELK
|
|
|
|
## Elasticsearch service
|
|
|
|
elasticsearch:
|
|
|
|
container_name: elasticsearch
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- bootstrap.memory_lock=true
|
2022-03-31 14:46:56 +00:00
|
|
|
- ES_JAVA_OPTS=-Xms2048m -Xmx2048m
|
2022-01-03 18:24:17 +00:00
|
|
|
- ES_TMPDIR=/tmp
|
|
|
|
cap_add:
|
|
|
|
- IPC_LOCK
|
|
|
|
ulimits:
|
|
|
|
memlock:
|
|
|
|
soft: -1
|
|
|
|
hard: -1
|
|
|
|
nofile:
|
|
|
|
soft: 65536
|
|
|
|
hard: 65536
|
|
|
|
# mem_limit: 4g
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:64298:9200"
|
2022-04-08 13:45:53 +00:00
|
|
|
image: "dtagdevsec/elasticsearch:2204"
|
2022-01-03 18:24:17 +00:00
|
|
|
volumes:
|
|
|
|
- /data:/data
|
|
|
|
|
|
|
|
## Kibana service
|
|
|
|
kibana:
|
|
|
|
container_name: kibana
|
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
elasticsearch:
|
|
|
|
condition: service_healthy
|
2022-03-23 21:56:44 +00:00
|
|
|
# mem_limit: 1g
|
2022-01-03 18:24:17 +00:00
|
|
|
ports:
|
|
|
|
- "127.0.0.1:64296:5601"
|
2022-04-08 13:45:53 +00:00
|
|
|
image: "dtagdevsec/kibana:2204"
|
2022-01-03 18:24:17 +00:00
|
|
|
|
|
|
|
## Logstash service
|
|
|
|
logstash:
|
|
|
|
container_name: logstash
|
|
|
|
restart: always
|
2022-03-31 14:46:56 +00:00
|
|
|
environment:
|
|
|
|
- LS_JAVA_OPTS=-Xms2048m -Xmx2048m
|
2022-01-03 18:24:17 +00:00
|
|
|
depends_on:
|
|
|
|
elasticsearch:
|
|
|
|
condition: service_healthy
|
|
|
|
env_file:
|
|
|
|
- /opt/tpot/etc/compose/elk_environment
|
2022-01-04 16:16:27 +00:00
|
|
|
ports:
|
2022-02-24 17:39:57 +00:00
|
|
|
- "127.0.0.1:64305:64305"
|
2022-03-23 21:56:44 +00:00
|
|
|
# mem_limit: 2g
|
2022-04-08 13:45:53 +00:00
|
|
|
image: "dtagdevsec/logstash:2204"
|
2022-01-03 18:24:17 +00:00
|
|
|
volumes:
|
|
|
|
- /data:/data
|
|
|
|
|
2022-03-23 22:39:27 +00:00
|
|
|
## Map Redis Service
|
|
|
|
map_redis:
|
|
|
|
container_name: map_redis
|
|
|
|
restart: always
|
|
|
|
stop_signal: SIGKILL
|
|
|
|
tty: true
|
2022-04-08 13:45:53 +00:00
|
|
|
image: "dtagdevsec/redis:2204"
|
2022-03-23 22:39:27 +00:00
|
|
|
read_only: true
|
|
|
|
|
|
|
|
## Map Web Service
|
|
|
|
map_web:
|
|
|
|
container_name: map_web
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- MAP_COMMAND=AttackMapServer.py
|
|
|
|
env_file:
|
|
|
|
- /opt/tpot/etc/compose/elk_environment
|
|
|
|
stop_signal: SIGKILL
|
|
|
|
tty: true
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:64299:64299"
|
2022-04-08 13:45:53 +00:00
|
|
|
image: "dtagdevsec/map:2204"
|
2022-03-23 22:39:27 +00:00
|
|
|
|
|
|
|
## Map Data Service
|
|
|
|
map_data:
|
|
|
|
container_name: map_data
|
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
elasticsearch:
|
|
|
|
condition: service_healthy
|
|
|
|
environment:
|
|
|
|
- MAP_COMMAND=DataServer_v2.py
|
|
|
|
env_file:
|
|
|
|
- /opt/tpot/etc/compose/elk_environment
|
|
|
|
stop_signal: SIGKILL
|
|
|
|
tty: true
|
2022-04-08 13:45:53 +00:00
|
|
|
image: "dtagdevsec/map:2204"
|
2022-03-23 22:39:27 +00:00
|
|
|
#### /ELK
|
|
|
|
|
2022-01-03 18:24:17 +00:00
|
|
|
# Nginx service
|
|
|
|
nginx:
|
|
|
|
container_name: nginx
|
|
|
|
restart: always
|
|
|
|
tmpfs:
|
|
|
|
- /var/tmp/nginx/client_body
|
|
|
|
- /var/tmp/nginx/proxy
|
|
|
|
- /var/tmp/nginx/fastcgi
|
|
|
|
- /var/tmp/nginx/uwsgi
|
2022-01-29 00:45:41 +00:00
|
|
|
- /var/tmp/nginx/scgi
|
2022-01-03 18:24:17 +00:00
|
|
|
- /run
|
2022-01-29 00:45:41 +00:00
|
|
|
- /var/lib/nginx/tmp:uid=100,gid=82
|
2022-01-03 18:24:17 +00:00
|
|
|
network_mode: "host"
|
|
|
|
ports:
|
|
|
|
- "64297:64297"
|
|
|
|
- "127.0.0.1:64304:64304"
|
2022-04-08 13:45:53 +00:00
|
|
|
image: "dtagdevsec/nginx:2204"
|
2022-01-03 18:24:17 +00:00
|
|
|
read_only: true
|
|
|
|
volumes:
|
|
|
|
- /data/nginx/cert/:/etc/nginx/cert/:ro
|
|
|
|
- /data/nginx/conf/nginxpasswd:/etc/nginx/nginxpasswd:ro
|
|
|
|
- /data/nginx/log/:/var/log/nginx/
|
|
|
|
|
|
|
|
# Spiderfoot service
|
|
|
|
spiderfoot:
|
|
|
|
container_name: spiderfoot
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- spiderfoot_local
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:64303:8080"
|
2022-04-08 13:45:53 +00:00
|
|
|
image: "dtagdevsec/spiderfoot:2204"
|
2022-01-03 18:24:17 +00:00
|
|
|
volumes:
|
2022-02-28 22:00:54 +00:00
|
|
|
- /data/spiderfoot:/home/spiderfoot/.spiderfoot
|