Skip to content
Permalink
Browse files

Added Docker Compose functionality to achieve a fully functional Reco…

…n-API.
  • Loading branch information...
lanmaster53 committed Oct 28, 2019
1 parent ec96b94 commit 9e99f71811e84303528959394e4ae2307d8480ae
Showing with 39 additions and 6 deletions.
  1. +1 −0 .gitignore
  2. +4 −5 Dockerfile
  3. +32 −0 docker-compose.yml
  4. +2 −1 recon/core/web/__init__.py
@@ -1,4 +1,5 @@
*.pyc
*.rdb
*sublime*
venv/
scripts/
@@ -4,11 +4,10 @@ RUN apk add --no-cache --virtual .build-deps gcc libc-dev libxslt-dev && \
apk add --no-cache libxslt && \
pip install --no-cache-dir lxml && \
apk del .build-deps && \
apk add git && \
git clone --single-branch --branch staging https://github.com/lanmaster53/recon-ng.git /root/recon-ng
mkdir -p /recon-ng

WORKDIR /root/recon-ng
WORKDIR /recon-ng

RUN pip install -r REQUIREMENTS
ADD ./REQUIREMENTS /recon-ng/REQUIREMENTS

CMD ./recon-ng
RUN pip install -r REQUIREMENTS
@@ -0,0 +1,32 @@
version: '3.7'

services:

web:
build: .
image: recon-ng
container_name: recon-ng
ports:
- '5000:5000'
command: ./recon-web --host 0.0.0.0
volumes:
- .:/recon-ng
- ~/.recon-ng:/root/.recon-ng
environment:
- REDIS_URL=redis://redis:6379/0
depends_on:
- redis

worker:
image: recon-ng
command: rq worker -u redis://redis:6379/0 recon-tasks
volumes:
- .:/recon-ng
- ~/.recon-ng:/root/.recon-ng
environment:
- REDIS_URL=redis://redis:6379/0
depends_on:
- redis

redis:
image: redis
@@ -4,6 +4,7 @@
from recon.core.constants import BANNER_WEB
from recon.core.web.db import Tasks
from redis import Redis
import os
import rq

# disable the development server warning banner
@@ -20,7 +21,7 @@
DEBUG = False
SECRET_KEY = 'we keep no secrets here.'
JSON_SORT_KEYS = False
REDIS_URL = 'redis://'
REDIS_URL = os.environ.get('REDIS_URL', 'redis://')
SWAGGER = {
'title': 'Swagger',
'info': {

0 comments on commit 9e99f71

Please sign in to comment.
You can’t perform that action at this time.