Single VM Deployment
This guide explains how to deploy Popsink using the Single VM model. This approach provides a preconfigured virtual machine image built with HashiCorp Packer, allowing you to run Popsink quickly without managing a distributed infrastructure.Overview
The Single VM deployment is the simplest way to run Popsink. It packages all required components into a single virtual machine image, making it ideal for:- Quick evaluations
- Development and testing environments
- Lightweight production workloads
Architecture
In this deployment model, all Popsink components run on a single machine:- API service
- Workers
- Database
- Internal dependencies
Prerequisites
Before getting started, ensure you have:- A virtualization platform or cloud provider capable of running VM images:
- AWS (EC2)
- GCP (Compute Engine)
- Azure
- Local hypervisor (VirtualBox, VMware, etc.)
- Access to a Popsink VM image (provided or self-built)
- Minimum recommended resources:
- 4 vCPU
- 8 GB RAM
- 50 GB disk
Getting the VM Image
Popsink provides prebuilt images for supported platforms. Contact your Popsink representative or check your distribution channel.Deployment
Deploy on a Cloud Provider
- Upload or register the VM image
- Create a new VM instance using the image
-
Configure:
- Network access (open required ports)
- SSH access
Deploy Locally
- Import the image into your hypervisor
- Start the VM
- Access via SSH or browser
Accessing Popsink
Once the VM is running, Popsink should be available at:- API:
8080 - UI (if enabled):
3000
Configuration
Configuration is handled directly on the VM.Environment Variables
Edit the configuration file:Updates
To update Popsink:- Replace the VM with a newer image (recommended)
- Or update in-place (advanced users only)
Persistence and Backups
Since everything runs on a single VM:- Ensure disk persistence is enabled
-
Regularly back up:
- Database data
- Configuration files
Limitations
This deployment model has some trade-offs:- No horizontal scalability
- Single point of failure
- Limited performance for high workloads