work in progress (map, wordpot)

This commit is contained in:
t3chn0m4g3
2022-02-09 19:13:18 +00:00
parent e741f97f9a
commit 2a4fe20b88
7 changed files with 219 additions and 1 deletions

39
docker/elk/map/Dockerfile Normal file
View File

@ -0,0 +1,39 @@
FROM alpine:3.15
#
# Install packages
RUN apk -U add \
build-base \
git \
libcap \
py3-pip \
python3 \
python3-dev && \
#
# Install Server from GitHub and setup
mkdir -p /opt && \
cd /opt/ && \
git clone https://github.com/t3chn0m4g3/geoip-attack-map && \
cd geoip-attack-map && \
# git checkout 4dae740178455f371b667ee095f824cb271f07e8 && \
#sed "s/MarkupSafe==1.0/MarkupSafe==1.1.1/g" -i requirements.txt && \
pip3 install -r requirements.txt && \
pip3 install flask && \
setcap cap_net_bind_service=+ep /usr/bin/python3.9 && \
#
# Setup user, groups and configs
addgroup -g 2000 map && \
adduser -S -H -s /bin/ash -u 2000 -D -g 2000 map && \
chown map:map -R /opt/geoip-attack-map && \
#
# Clean up
apk del --purge build-base \
git \
python3-dev && \
rm -rf /root/* && \
rm -rf /var/cache/apk/*
#
# Start wordpot
STOPSIGNAL SIGINT
USER map:map
WORKDIR /opt/geoip-attack-map
CMD exec /usr/bin/python3 $MAP_COMMAND

View File

@ -0,0 +1,54 @@
version: '2.3'
#networks:
# map_local:
services:
# Map Redis Service
map_redis:
container_name: map_redis
restart: always
stop_signal: SIGKILL
tty: true
# networks:
# - map_local
ports:
- "127.0.0.1:6379:6379"
image: "dtagdevsec/redis:2203"
read_only: true
# Map Web Service
map_web:
build: .
container_name: map_web
restart: always
environment:
- MAP_COMMAND=AttackMapServer.py
env_file:
- /opt/tpot/etc/compose/elk_environment
stop_signal: SIGKILL
tty: true
# networks:
# - map_local
ports:
- "9999:13337"
image: "dtagdevsec/map_web:2203"
depends_on:
- map_redis
# Map Data Service
map_data:
container_name: map_data
restart: always
environment:
- MAP_COMMAND=DataServer_v2.py
env_file:
- /opt/tpot/etc/compose/elk_environment
stop_signal: SIGKILL
tty: true
# networks:
# - map_local
image: "dtagdevsec/map_web:2203"
depends_on:
- map_redis