Skip to content

Latest commit

 

History

History
67 lines (58 loc) · 2.72 KB

README.md

File metadata and controls

67 lines (58 loc) · 2.72 KB

broker

Exchange the results of a web request into a different format

How to Install

These instructions assume that you've already created a useable database for your application, along with having the required credentials. If you do not need a database, you can ignore the database credentials or set them as placeholders for later. If you need help on creating a database, you can learn how, here.

  • Download the git repository
    • git clone https://github.com/jesse-greathouse/broker
  • Change to the broker directory
    • cd broker

Docker Installation

Docker Management Instructions

Building the App

docker build -t jessegreathouse/broker .

Pushing the App

docker push jessegreathouse/broker

Running the APP

docker run -d -p 3000:3000 \
    -e ENV=prod \
    -e DEBUG=false \
    -e FORCE_SSL=false \
    -e DIR="/app" \
    -e BIN="/app/bin" \
    -e ETC="/app/etc" \
    -e OPT="/app/opt" \
    -e SRC="/app/src" \
    -e TMP="/app/tmp" \
    -e VAR="/app/var" \
    -e WEB="/app/web" \
    -e CACHE_DIR="/app/var/cache" \
    -e LOG_DIR="/app/var/logs" \
    -e REDIS_HOST=redis \
    -e DB_NAME="db_name" \
    -e DB_USER="db_user" \
    -e DB_PASSWORD="db_password" \
    -e DB_HOST="192.168.0.1" \
    -e DB_PORT=3306 \
    -v $(pwd)/error.log:/app/error.log \
    -v $(pwd)/supervisord.log:/app/supervisord.log \
    -v $(pwd)/etc/nginx/nginx.conf:/app/etc/nginx/nginx.conf \
    --restart no \
    --name my-site \
    jessegreathouse/broker

Running Tests

docker exec -ti broker run_tests.sh