HiddenEye-Legacy/Docker/README.md

79 lines
1.9 KiB
Markdown
Raw Normal View History

2020-07-26 11:05:56 +08:00
# Run HiddenEye in Docker Compose
2020-07-26 11:21:48 +08:00
![docker](https://img.shields.io/badge/Docker-v19.03.12-blue?style=plastic&logo=docker)
![dockercompose](https://img.shields.io/badge/Docker_Compose-v1.25.4-orange?style=plastic&logo=docker)
![Maintainer](https://img.shields.io/badge/Maintainer-Equinockx-success?style=plastic&logo=terraform)
2020-07-26 23:17:39 +08:00
2020-07-27 02:54:22 +08:00
## Runnin within container
2020-07-26 23:17:39 +08:00
![running](https://github.com/MoisesTapia/HiddenEye/blob/Docker/Docker/images/start.png)
![link](https://github.com/MoisesTapia/HiddenEye/blob/Docker/Docker/images/URL.png)
2020-07-27 02:54:22 +08:00
## Requeriments
2020-07-26 11:21:48 +08:00
- [X] Docker
- [X] docker-compose
2020-07-27 02:54:22 +08:00
## Usage Mode
2020-07-26 11:21:48 +08:00
Clone the repo from Github
```bash
git clone https://github.com/DarkSecDevelopers/HiddenEye
cd HiddenEye/Docker
```
Run docker-compose
```bash
docker-compose up --build -d
```
2020-07-26 23:21:51 +08:00
*_Don't need redirection of ports 'cause the container is exposed to internet_* <br>
2020-07-26 11:21:48 +08:00
Verify of the container is running with:
```bash
docker-compose ps
```
2020-07-26 23:17:39 +08:00
![ps](https://github.com/MoisesTapia/HiddenEye/blob/Docker/Docker/images/ps.png)
2020-07-26 11:21:48 +08:00
Executing HiddenEye inside of container
```bash
docker-compose exec hidden python3 HiddenEye.py
```
2020-07-26 23:17:39 +08:00
![exec](https://github.com/MoisesTapia/HiddenEye/blob/Docker/Docker/images/executing.png)
2020-07-26 11:21:48 +08:00
2020-07-27 02:54:22 +08:00
## Persist Data
2020-07-26 21:22:41 +08:00
When we make or buils the service with `docker-compose up --build -d` this persist the data templates in the same folder `WebTemplate`.
2020-07-26 23:18:34 +08:00
If you add the new Template in `WbeTemplate` this will be reflected in the container and you can use it.
2020-07-26 21:22:41 +08:00
To add WebTemplate you juste need add them in this folder and done
2020-07-26 21:39:42 +08:00
- [X] `equinockx~/Webtemplate$ cp * Docker/Webtemplate`
2020-07-26 21:22:41 +08:00
- [X] WebTemplate
2020-07-27 02:54:22 +08:00
## First Start the services
2020-07-26 21:22:41 +08:00
```bash
docker-compose up --build -d
```
2020-07-27 02:54:22 +08:00
## Down the container
2020-07-26 21:22:41 +08:00
```bash
docker-compose down
```
2020-07-27 02:54:22 +08:00
## Stop the services
2020-07-26 21:22:41 +08:00
```bash
docker-compose stop
```
2020-07-27 02:54:22 +08:00
## Start the services
2020-07-26 21:22:41 +08:00
With this command docker-compose will initialize the service stopped
```bash
docker-compose start
```
2020-07-26 11:21:48 +08:00