Deploy with Docker
Installation Guide for ReportPortal
This concise, step-by-step guide will help you deploy ReportPortal using Docker Compose (version ≥2.2). It covers prerequisites, configuration, deployment, and verification to ensure anyone can set up the application quickly.
Prerequisites
-
Operating System
- Linux (Ubuntu 20.04+ or equivalent).
- macOS (Apple Silicon and Intel-based supported).
- Windows (64-bit Windows 11 Pro or higher)
-
Docker & Docker Compose. Install the latest Docker Engine and Docker Compose plugin
-
System Resources
- At least 2 CPU cores
- Minimum 6GB RAM allocated to Docker
- Swap or storage: ≥20GB free space for Docker images and data
For production, deploy on a Linux-based server or cloud instance. Adjust resource limits according to expected load. See advanced deployment recommendations.
Step 1: Prepare the Environment
-
Verify Docker & Compose Installation
docker --version
docker compose version -
Adjust Docker Resources (Desktop Users)
- Open Docker Desktop settings.
- Allocate at least 2 CPUs and 6GB RAM under Resources.
Step 2: Obtain the Docker Compose File
-
Download the Official
docker-compose.yml
curl -LO https://raw.githubusercontent.com/reportportal/reportportal/master/docker-compose.yml
-
Review and Customize Environment Variables
-
Open
docker-compose.yml
in your editor. -
Locate the
RP_INITIAL_ADMIN_PASSWORD
variable under theuat-service
(or equivalent) section.services:
uat:
environment:
RP_INITIAL_ADMIN_PASSWORD: "ChangeMe123" -
Replace
ChangeMe123
with a secure password of your choice. -
(Optional) Adjust other variables such as database credentials or ports if needed.
-
Step 3: Deploy ReportPortal
-
Launch Containers
docker compose -p reportportal up -d --force-recreate
-p reportportal
: Prefixes container names withreportportal_
.up -d
: Creates and starts services in detached mode.--force-recreate
: Ensures containers are recreated, applying any changes.
-
Monitor Startup Logs
-
View combined logs:
docker compose logs -f
-
View logs for a specific container:
docker logs reportportal_uat
-
-
Cleanup
-
To stop and remove all ReportPortal containers:
docker compose down --volumes --remove-orphans
-
Tips and Best Practices
- Use External Volumes: Mount host volumes for data persistence (
/var/lib/reportportal
). - Secure Secrets: Store sensitive environment variables (e.g., DB passwords) in a
.env
file and reference them indocker-compose.yml
. - Use Docker Networks: Isolate ReportPortal on its own network for enhanced security.
- Scale Services: For high availability, consider using Kubernetes with multiple replicas.
- Backups: Schedule periodic backups of the PostgreSQL database and Storage. How to backup ReportPortal guide