Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

mdillon/reportr-dashboard

A Docker container running Reportr.

Usage

Run a web container using linked Redis and Mongo containers:

docker run -d -p 5000:5000 \
    --link some-redis:redis \
    --link some-mongo:mongo \
    --name reportr-web \
    mdillon/reportr-dashboard

Your dashboard can be accessed at http://localhost:5000/ (or http://`$DOCKER_HOST`:5000 for boot2docker).

Or use nginx-proxy and configure
possibly external Redis and Mongo servers:

docker run -d \
    -e VIRTUAL_HOST=dashboard.example.com \
    -e REDIS_URL=redis://redis.example.com:6379 \
    -e MONGODB_URL=mongodb://mongo.example.com:27017/my-reportr-db \
    --name reportr-web \
    mdillon/reportr-dashboard

Then run a worker container, using the same links or environment variables to
configure your Redis and Mongo:

docker run -d \
    --link some-redis:redis \
    # -e REDIS_URL=redis://redis.example.com:6379 \
    --link some-mongo:mongo \
    # -e MONGODB_URL=mongodb://mongo.example.com:27017/my-reportr-db \
    --name reportr-worker \
    mdillon/reportr-dashboard \
    node bin/worker.js

The default database name is reportr. If Docker links are being used, the
database name can be changed by specifying the REPORTR_DB_NAME environment
variable. Otherwise, the database name should be set directly as part of the
MONGODB_URL environment variable.

Docker Pull Command
Owner
mdillon
Source Repository

Comments (1)
red5d
2 years ago

Getting some kind of node/mongodb error when trying to run this.

/usr/src/app/node_modules/mongoose-q/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/base.js:246
throw message;
^
TypeError: Cannot read property 'length' of undefined
at processResults (/usr/src/app/node_modules/mongoose-q/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1581:31)
at /usr/src/app/node_modules/mongoose-q/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1619:20
at /usr/src/app/node_modules/mongoose-q/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1157:7
at /usr/src/app/node_modules/mongoose-q/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1890:9
at Server.Base._callHandler (/usr/src/app/node_modules/mongoose-q/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/base.js:448:41)
at /usr/src/app/node_modules/mongoose-q/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:481:18
at MongoReply.parseBody (/usr/src/app/node_modules/mongoose-q/node_modules/mongoose/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)
at null.<anonymous> (/usr/src/app/node_modules/mongoose-q/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:439:20)
at emit (events.js:95:17)
at null.<anonymous> (/usr/src/app/node_modules/mongoose-q/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:201:13)