Deploy and Fix Plausible Analytics on CloudJiffy

Overview

This guide explains how to deploy and fix Plausible Analytics on CloudJiffy when using the Marketplace template.

By default, the Plausible template may fail due to missing environment variables, causing the application container to restart continuously.

 

Issue Description

After deploying Plausible Analytics from the Marketplace:

  • Environment shows Running
  • But application is not accessible
  • Container keeps restarting
  •  

Error Observed

From container logs:

 
BASE_URL must start with 'http' or 'https'. Currently configured as ""

Step-by-Step Resolution
 

 Step 1: Access Server via SSH

Login to the application server node from CloudJiffy dashboard.


 Step 2: Navigate to Deployment Directory

 
cd /root/hosting
 

  Step 3: Edit Docker Compose File

 
vi compose.yml
 

  Step 4: Update Plausible Service Configuration

 âœ… Add env_file (above TMPDIR line)

 
env_file:
- plausible-conf.env
 

✅ Update Port Mapping

 
ports:
- "80:8000"
 

✅ Keep Existing TMPDIR Configuration

 
environment:
- TMPDIR=/var/lib/plausible/tmp
 

Note: TMPDIR is already present. Use it as a reference point to insert env_file above it.

 

Remove Invalid Environment Variables

Delete the following lines:

 
- BASE_URL=${BASE_URL}
- SECRET_KEY_BASE=${SECRET_KEY_BASE}

You file will appear like below:
 
 
Step 5 :Validate YAML Syntax
 
docker compose config > /dev/null && echo "YAML OK"

Note: Above command you need to execute in this path >> /root/hosting

Step 6: Recreate Plausible Container
 
docker compose up -d --force-recreate plausible

Step 7:Verify Container Status
 
docker ps -a --format "table {{.Names}}\t{{.Status}}"
 
Expected output:
 
hosting-plausible-1   Up
 
Step8: Configure Secure Access
 


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 13