Skip to content

Commit

Permalink
feat: add docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckyMomo20012 committed Mar 22, 2023
1 parent ae2d472 commit 384ae50
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
45 changes: 45 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
version: "3.9"
services:
postgres:
container_name: postgres
image: postgres:15.2
user: postgres
ports:
- "5432:5432"
networks:
- my-network
env_file:
- .env
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 1s
timeout: 2s
retries: 3
start_period: 5s

hashcat:
container_name: hashcat
image: dizcza/docker-hashcat:cuda
command: bash -c "tail -f /dev/null"
networks:
- my-network
depends_on:
postgres:
condition: service_healthy

hydra:
container_name: hydra
build:
context: .
dockerfile: docker/hydra/Dockerfile
entrypoint: ""
command: bash -c "tail -f /dev/null"
networks:
- my-network
depends_on:
postgres:
condition: service_healthy

networks:
my-network:
driver: bridge
8 changes: 8 additions & 0 deletions docker/hydra/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM ubuntu:latest
RUN apt-get update && \
apt-get install -y git make libssl-dev libssh-dev libidn11-dev libpcre3-dev \
libgtk2.0-dev default-libmysqlclient-dev libpq-dev libsvn-dev \
firebird-dev libmemcached-dev libgpg-error-dev \
libgcrypt20-dev
RUN git clone https://github.com/vanhauser-thc/thc-hydra
RUN cd ./thc-hydra && ./configure && make && make install

0 comments on commit 384ae50

Please sign in to comment.