Persistent Services
Run a custom image with a Volume that keeps its data across Container replacements.
A Persistent Service runs your image with a Volume mounted at a path such
as /data. Its files survive Container replacements and app updates.
Use it for an app’s local uploads, a custom database, or another component
that needs a filesystem.
Supabase uses Persistent Services for its PostgreSQL distribution, uploaded files, and saved Studio snippets. It is a useful option when an app needs something beyond Blossom’s supported managed Databases.
Choose Where It Runs
| Choice | Compute | Storage |
|---|---|---|
| Shared | Shares your Persistent Capacity with your other Persistent Services | Its own Volume |
| Dedicated | Reserves compute for this Service | Its own Volume |
Both run on Servers assigned to your Account. Persistent Capacity is separate from regular App Capacity and Managed Data Capacity.
Ask Your Agent
Your agent chooses the mount path, Volume size, and Container allocation for the app. In service.yml, it adds storage alongside the image and command:
service:
# Your Environment, image, command, and resources go here.
desired_size: 1
storage:
size_gib: 10
mount_path: /data
availability: shared
blossom service:create --data service.yml
blossom environment:deploy --id environment-100 --follow
blossom service:show --id service-100
See the Service reference for the full definition.
One Writer Per Volume
A Persistent Service runs one Container. Blossom stops the previous writer before starting its replacement with the retained Volume, so updates can briefly interrupt access. This provides durable files, not multiple writable replicas or database failover.
For multiple web Containers, use shared external storage such as a supported object store when the application can use it. For a supported database engine, use a managed Database when you want its database-specific backup and recovery features. A retained Volume alone is not an application backup.
Grow Storage
Increase size_gib to grow the Volume. Its mount path and availability choice
stay fixed, and storage cannot shrink.
Change Container Size
Choose Change size in Service settings. Blossom stops the writer, changes its compute, then resumes it on the same Volume. Shared neighbors keep running; Blossom adds another Server when needed. The screen shows the Capacity effect before you confirm.
blossom service:update --id service-100 --data '{service: {resources: {preset: medium}}}'
blossom activity:wait --id activity-100
Use the Activity returned by the update. Change the image and command separately. If the operation stops, Resume continues from its saved step.
Stop And Resume
Choose Stop Service in Service settings to stop the writer and release its compute reservation. This keeps the disabled Service and its Volume. Storage charges continue.
blossom service:stop --id service-100 --follow
blossom service:start --id service-100 --follow
Starting reacquires compute and resumes its last successful Release on the same Volume.
Reuse A Volume
Open Data → Volumes to find attached and retained Service storage. After stopping its Service, release a Volume and assign it to another stopped Service in the same Environment and Location:
blossom volume:list
blossom volume:show --id volume-100
blossom volume:release --id volume-100 --follow
blossom volume:attach --id volume-100 --service service-200 --mount-path /data
Attachment leaves the destination stopped. When its image and command are ready, enable it and deploy:
blossom service:update --id service-200 --data '{service: {enabled: true, desired_size: 1}}'
blossom environment:deploy --id environment-100 --follow
To create a Service using existing storage, see reuse a Volume.
To delete the original Service and keep only its Volume:
blossom service:delete --id service-100 --storage retain --follow
The Volume stays in its Environment, available for reuse. Storage charges continue. Managed Database and Builder disks stay with their own Products.
Back Up A Volume
New Persistent Service Volumes can save encrypted backups without stopping their Service. In Data → Volumes, choose Backup Storage and select Back up now, or enable daily backups.
blossom backup:setting:update --volume volume-100 --data '{backup_setting: {backup_storage_id: backup_storage-100, enabled: true}}'
blossom backup:create --data '{backup: {volume_id: volume-100}}' --follow
blossom backup:list --volume volume-100
Restore to a stopped Service without storage in the same Location:
blossom backup:restore --id backup-100 --data '{restore: {service_id: service-200}}' --follow
The restored Service stays stopped. Review its image and command, then enable it and deploy its Environment as shown under Reuse A Volume. Saved backups remain available after deleting the original Volume. They cover its files at one point in time; connected Databases and external buckets need their own backups. Online Volume backups apply to new Btrfs Volumes; existing ext4 disks stay unchanged.
Delete Storage
Choose Delete Service and Volume, or explicitly remove a released Volume:
blossom service:delete --id service-100 --storage delete --follow
blossom volume:delete --id volume-100 --follow
Deleting the owning Environment also deletes its Persistent Services and retained Volumes. Volume deletion cannot be undone.
What You Get
Your own image, a persistent filesystem, and a managed Service lifecycle, without installing and maintaining a separate VM by hand.