Public | Automated Build

Last pushed: 6 days ago
Short Description
jsreport is reporting platform based on html and javascript templatng engines.
Full Description

Tags

jsreport/jsreport image is automatically pushed with adequate tags into docker hub public repository in two variations:

  • jsreport/jsreport:1.31 (Dockerfile) contains default installation from npm
  • jsreport/jsreport:1.31-full (Dockerfile) contains default installation plus all the community extensions including wkhtmltopdf or electron recipes

Usage

  1. Install Docker
  2. sudo docker run -p 80:5488 jsreport/jsreport

This is the most basic usage. It will start jsreport server on port 80 directly in the current shell with data and configuration stored directly in container. Change 80 http port to whatever you want.

Start on reboot

You may want to additionally run the container as daemon and restart it on system reboot

sudo docker run -d -p 80:5488 --restart always jsreport/jsreport

Configuring jsreport

The easiest way is to pass the configuration as environment variables. The authentication can be for example applied in this way

sudo docker run -e "authentication:enabled=true" -e "authentication:admin:password=xxx" -p 80:5488 jsreport/jsreport

Persist templates

The templates are by default persisted inside the container. You may rather want to store them in a mounted directory or in an external database.

Mount directory

To mount directory with data you need to create directory /jsreport-home first and then run docker as

sudo docker run -p 80:5488 -v /jsreport-home:/jsreport jsreport/jsreport`

Note that you can also create prod.config.json inside the mounted directory and reconfigure jsreport before starting it.

Persist in external database

The full image like jsreport/jsreport:1.31-full has all the custom data stores like mongodb, mssql or PostgreSQL already installed. You only need to properly configure the connectionString environment variable. For example

sudo docker run -e "connectionString:name=mssql" -e "connectionString:uri=Server=tcp:jsreport.database.windows.net,1433;Initial Catalog=jsreport;Persist Security Info=False;User ID=myuser;Password=password;MultipleActiveResultSets=False;Encrypt=True;" -p 80:5488 jsreport/jsreport:1.3.1-full`
Docker Pull Command
Owner
jsreport
Source Repository

Comments (0)