mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
prepare for wetty docker image
This commit is contained in:
2
docker/nginx/dist/html/navbar.html
vendored
2
docker/nginx/dist/html/navbar.html
vendored
@ -15,7 +15,7 @@
|
||||
<a href="/netdata/" target="_blank" class="btn">Netdata</a>
|
||||
<a href="/spiderfoot/" target="main" class="btn">Spiderfoot</a>
|
||||
<a href="/ui/" target="main" class="btn">Portainer</a>
|
||||
<a href="/wetty/ssh/tsec" target="main" class="btn">WebTTY</a>
|
||||
<a href="/wetty/" target="main" class="btn">WebTTY</a>
|
||||
</center>
|
||||
</body>
|
||||
</html>
|
||||
|
23
docker/wetty/Dockerfile
Normal file
23
docker/wetty/Dockerfile
Normal file
@ -0,0 +1,23 @@
|
||||
FROM alpine
|
||||
MAINTAINER MO
|
||||
|
||||
# Setup env and apt
|
||||
RUN apk -U upgrade && \
|
||||
apk add bash build-base git nodejs nodejs-npm openssh-client python procps && \
|
||||
|
||||
# Setup user
|
||||
addgroup -g 2000 wetty && \
|
||||
adduser -S -s /bin/bash -u 2000 -D -g 2000 wetty && \
|
||||
|
||||
# Get and install packages
|
||||
mkdir -p /app/ && \
|
||||
cd /app/ && \
|
||||
npm install https://github.com/t3chn0m4g3/wetty && \
|
||||
|
||||
# Clean up
|
||||
apk del build-base git nodejs-npm python
|
||||
|
||||
# Start elasticsearch-head
|
||||
WORKDIR /app
|
||||
USER wetty
|
||||
CMD /usr/bin/node /app/node_modules/wetty/app.js -p 64300 --host 127.0.0.1 --sshhost 127.0.0.1 --sshport 64295 --sshuser $MY_SSHUSER
|
14
docker/wetty/docker-compose.yml
Normal file
14
docker/wetty/docker-compose.yml
Normal file
@ -0,0 +1,14 @@
|
||||
# T-Pot (Standard)
|
||||
# For docker-compose ...
|
||||
version: '2.2'
|
||||
|
||||
services:
|
||||
|
||||
# Wetty service
|
||||
wetty:
|
||||
container_name: wetty
|
||||
restart: always
|
||||
network_mode: "host"
|
||||
env_file:
|
||||
- /opt/tpot/etc/compose/wetty_environment
|
||||
image: "dtagdevsec/wetty:1710"
|
Reference in New Issue
Block a user