docs(README): add Docker usage instructions and update docker compose

This commit is contained in:
Mohamed Kara 2025-09-02 11:38:39 +01:00
parent 076c59d453
commit d9a0673d9f
2 changed files with 18 additions and 5 deletions

View File

@ -138,6 +138,18 @@ pip install -r requirements.txt
apt -y update && apt -y install curl wget libcurl4 libssl-dev python3 python3-pip make cmake automake autoconf m4 build-essential git && git clone https://github.com/MatrixTM/MHDDoS.git && cd MH* && pip3 install -r requirements.txt
```
**Docker**
```shell script
git clone https://github.com/MatrixTM/MHDDoS.git
cd MHDDoS
docker compose build
# you can use the built image directly by uncommenting one line in the dockercompose
docker compose run -it --entrypoint /bin/bash mhddos
```
[python3]: https://python.org 'Python3'
[github issues]: https://github.com/MatrixTM/MHDDoS/issues 'enter'

View File

@ -1,12 +1,13 @@
version: "3.9"
services:
mhddos:
build: .
container_name: mhddos
restart: always
restart: unless-stopped
volumes:
- ./config.json:/app/config.json
- ./files:/app/files
# open shell directly
entrypoint: ["/bin/bash"]
# or pass the args dirctly
#command: ["TCP", "0.0.0.0:80", "10", "100"]