An open API service indexing awesome lists of open source software.

https://github.com/p3t3r67x0/docker_leakz

Docker repository to build leakz website and API
https://github.com/p3t3r67x0/docker_leakz

docker leakz md5 sha1 sha224 sha256 sha384 sha512

Last synced: 2 months ago
JSON representation

Docker repository to build leakz website and API

Awesome Lists containing this project

README

          

# docker_leakz

Docker repository to build leakz website and API

## Prerequisites

First you must clone the repository and then change directory.

```sh
git clone git@github.com:webtobesocial/docker_leakz.git
cd docker_leakz
```

First things first. There are some steps you might do to run the container. You must create `create_user.js` file in the **mongodb** folder. Then you want to replace `` with your own password.

```js
db.createUser({user: "pymongo", pwd: "", roles: [{ role: "readWrite", db: "intel" }] });
```

Next you must create a `.secret` file in the **frontend** folder. Then you want to replace `` with your own password which must be the same as the above password you choose.

```js

```

Then you create a `.config` file in the same **frontend** folder.

```json
{
"mongodb_db": "intel",
"mongodb_uri": "mongodb",
"mongodb_port": "27017",
"influxdb_db": "metric",
"influxdb_uri": "influxdb",
"influxdb_port": "8086"
}
```

## Build

Now you are ready to run following commands from your shell.

```sh
docker-compose build --no-cache
docker-compose up -d
```

Now you may run `docker ps` to verify that all three containers are up and running. Next we want to execute the following command. Make sure to replace `` with your choosen password some steps above.

```sh
docker exec docker_leakz_mongodb_1 bash -c "mongo intel create.js"
```

Then you should be able to open the website under http://127.0.0.1:8000/

## Debugging

Try to run the following command from your host system.

```sh
docker logs docker_leakz_mongodb_1
docker logs docker_leakz_frontend_1
docker logs docker_leakz_nginx_1
```

Don't hesitate to contact me [@webtobesocial](https://twitter.com/webtobesocial) with your question.