This repository is a fork of the js-docker repository that has been updated to include support for building, configuring, and running JasperReports Server (Community Edition), PostgreSQL and pgAdmin in containers.
Also see: Background
Change the current working directory to the location where you want the cloned directory to be:
cd ~/workspace
Clone the project by running the following command:
git clone git@github.com:Robinyo/js-docker.git
cd js-docker
Download the Community Edition of
JasperReports Server version 7.5.0 from SourceForge and place it in the resources directory.
Then run the following commands:
cd resources
chmod 755 unpackWARInstaller-ce.sh
./unpackWARInstaller-ce.sh
Download the ARM 64-bit version of PhantomJS from GitHub
and place it in the resources directory.
Alternatively, download the AMD 64-bit version of PhantomJS from the PhantomJS
website and place it in the resources directory.
Download the PostgreSQL JDBC driver version 42.7.13 from the PostgreSQL website and place it in the resources
directory.
Note: If you choose to use a different configuration, you will need to update the project's .env and jasperreports-server.env files.
To build the project:
# cd ~/workspace/js-docker
docker system prune && \
docker container prune && docker volume prune && docker network prune
export DOCKER_DEFAULT_PLATFORM=linux/arm64
# export DOCKER_DEFAULT_PLATFORM=windows/amd64
docker compose build
To run a multi-container application with the Docker CLI, you use the docker compose up command.
This command uses the project's docker-compose.yml
file to deploy a multi-container application:
docker compose up -d
Note: The JasperReports Server, PostgreSQL and pgAdmin containers may take a minute or two to startup.
Navigate to the JasperReports Server welcome page: http://localhost:11001/jasperserver
You can login using the following credentials:
- JasperReports Admin User - User ID:
jasperadminand Password:jasperadmin - Sample User - User ID:
joeuserand Password:joeuser
To stop the services:
docker compose stop
To remove the services and the associated data, run:
docker compose down -v
Note: The -v flag deletes all volumes, including process data, users, and other persisted state. Omit -v if you want to keep your data.
To check the environment variables inside your container:
docker inspect -f \
'{{range $index, $value := .Config.Env}}{{println $value}}{{end}}' \
jasperreports-server
You can check the status of the containers using the following command:
docker compose ps
To check the logs inside a container:
docker container logs jasperreports-server
docker container logs jasperreports-server-cmdline
docker container logs postgres
docker container logs pgadmin
See: JasperReports Server (Community Edition)
Jaspersoft Studio enables you to create highly formatted, pixel-perfect designed reports and data visualisations that meet any requirements and can pull from the widest selection of data sources.
Download the Community Edition of Jaspersoft Studio.
Also see: Jaspersoft Community
- Administrator Documentation


