How to install and upgrade Yurbi using Docker
Version: Yurbi v12 or higher Role: You must have root privileges or be a root-equivalent user to perform this installation. System Requirements:Any system capable of running Docker (Linux, Windows, macOS) Prerequisites:- Docker and Docker Compose installed- Minimum 8GB RAM recommended- At least 30GB free disk space- Internet connectivity for initial setup
Overview
In this article, we will provide the steps to install and upgrade Yurbi using Docker containers on supported versions of Linux. The Docker deployment includes an embedded PostgreSQL database, Yurbi application services, and an Nginx reverse proxy. This containerized approach provides easier deployment, isolation, and simplified upgrade procedures.
After the installation, we will guide you through activating the trial license of Yurbi and managing upgrades to newer versions.
Getting Started
To start, SSH to your Linux server as root or a root-level user.
ssh root@your-server-ip
Follow the steps below to complete the installation.
Prerequisites: Install Docker and Docker Compose
If Docker is not already installed on your system, install it first:
For Ubuntu/Debian:
# Update package indexsudo apt update # Install Dockersudo apt install -y docker.io docker-compose-plugin # Start and enable Dockersudo systemctl start dockersudo systemctl enable docker # Verify installationsudo docker --versionsudo docker compose version
For RHEL/Rocky/CentOS/Fedora:
# Install Dockersudo dnf install -y docker docker-compose-plugin # Start and enable Dockersudo systemctl start dockersudo systemctl enable docker # Verify installationsudo docker --versionsudo docker compose version
Fresh Installation
Step 1: Download and Extract Yurbi
Download the Yurbi installation package:
# Navigate to your desired installation directorycd /opt # Download the installation packagewget https://f002.backblazeb2.com/file/5000fish/yurbi/linux/yurbi-install.tar.gz # Extract the packagetar -xzf yurbi-install.tar.gz # Navigate to the installation directorycd yurbi
Step 2: Run the Installation
Execute the installation script:
sudo ./install.sh
The installation script will:
- Load Docker images for all Yurbi services
- Start PostgreSQL database, Yurbi application, and Nginx proxy
- Configure networking and volumes
Step 3: Monitor Installation Progress
You can monitor the installation progress by checking the container status:
# Check if all services are runningsudo docker ps # View logs for troubleshooting if neededsudo docker compose logs
Step 4: Verify Installation
Upon completion of the installation:
- Open a browser and navigate to:
http://<server-ip>/
- The Yurbi login screen should appear
- Login with the default credentials:
- user: admin
- password: yurbi
You should see a yellow alert bar indicating that you must activate Yurbi. Follow the instructions to proceed with the activation process.
Step 5: Service Management
After installation, you can manage Yurbi services using these commands:
# Stop all servicessudo docker compose down # Start all servicessudo docker compose up -d # View service statussudo docker compose ps # View logssudo docker compose logs
Upgrading Yurbi
Prerequisites for Upgrade
- Existing Yurbi Docker installation
- Access to your Yurbi installation directory
- Sufficient disk space for new images
Step 1: Navigate to Installation Directory
# Navigate to your existing Yurbi installationcd /path/to/your/yurbi
Step 2: Download and Extract Upgrade Package
# Download the upgrade packagewget https://f002.backblazeb2.com/file/5000fish/yurbi/linux/yurbi-upgrade.tar.gz # Extract upgrade files into current directorytar -xzf yurbi-upgrade.tar.gz
Step 3: Run the Upgrade
Execute the upgrade script:
sudo ./upgrade.sh
The upgrade script will:
- Stop current services gracefully
- Remove old application images to free space
- Load new application images
- Start services with updated versions
- Preserve your data and configuration
Step 4: Verify Upgrade
After the upgrade completes:
- Check that services are running:
sudo docker compose ps
- Verify web interface: Navigate to
http://<server-ip>/
- Confirm your data is intact: Login and verify your reports and users
Step 5: Cleanup (Optional)
Remove the upgrade package to free disk space:
rm yurbi-upgrade.tar.gz
Running Multiple Instances
You can run multiple Yurbi instances on the same server:
Step 1: Copy Installation Directory
# Copy your existing installationcp -r yurbi yurbi2cd yurbi2
Step 2: Modify Configuration
Edit docker-compose.yml
to change:
- Ports: Change
80:80
to8080:80
and5000:5000
to5001:5000
- Container names: Add suffix like
yurbi2-app
,yurbi2-postgres
- Volume names: Add suffix like
yurbi2-config
,yurbi2-logs
Step 3: Start Second Instance
sudo ./install.sh
Access the second instance at: http://<server-ip>:8080/
Troubleshooting
Common Issues
Port conflicts:
# Check what's using ports 80 or 5000sudo netstat -tlnp | grep :80sudo netstat -tlnp | grep :5000
Services not starting:
# Check service logssudo docker compose logs # Check individual servicesudo docker compose logs yurbi
Disk space issues:
# Clean up unused Docker imagessudo docker system prune -a # Check disk usagedf -h
Installation fails with "already running" error:
# Stop existing deployment firstsudo docker compose down # Then retry installationsudo ./install.sh
Useful Commands
# View all containerssudo docker ps -a # Restart specific servicesudo docker compose restart yurbi # View real-time logssudo docker compose logs -f # Check Docker system usagesudo docker system df
Getting Help
If you encounter issues during installation or upgrade:
- Check the logs:
sudo docker compose logs
- Verify system requirements are met
- Ensure sufficient disk space is available
- Contact support: support@yurbi.com with log files and system information
Security Considerations
Default Configuration
- Default web port: 80 (HTTP)
- Default API port: 5000
- Default credentials: admin/yurbi (change immediately)
Recommended Security Steps
- Change default passwords immediately after installation
- Configure HTTPS/SSL for production environments
- Restrict network access using firewall rules
- Regular backups of Yurbi data volumes
- Keep Docker and system updated
Data Persistence
Your Yurbi data is stored in Docker volumes:
pgdata
- PostgreSQL databaseyurbi-config
- Application configurationyurbi-logs
- Application logs
These volumes persist across container updates and restarts.