Deploy

Volumes

Keep the files a service writes across deployments and restarts.

Files that an image or Git service writes to its own disk are lost on every deployment and restart. A volume is a folder whose files stay. Use one for uploads, a SQLite file or the data folder of an app.

Databases don't need volumes. Harblet keeps their data by itself.

Add a volume

Open the tab

Open the service and go to Volumes.

Enter the path

Enter the folder inside the container, for example /data or /var/www/html, and click Add volume.

The path starts with /, has no spaces and doesn't end with a slash. Each path can have one volume.

Deploy

Click Deploy. The volume is there from this deployment on.

A new volume is empty, and it hides the files the image has at that path. Choose a folder the app fills itself, not the one that holds its code.

What changes for the service

  • It stays on one server. The volume is on the disk of one server, so the service always runs there. If that server fails, the service waits for it to come back.
  • It runs as one instance. You can't raise its instances while it has volumes.
  • It stops briefly during a deployment. Harblet stops the running version before it starts the new one, so the two never write to the same files.
  • A failed deployment leaves it down. Harblet doesn't go back to the version before by itself, because that version may not read files the new one already changed. Redeploy the deployment before it, or fix the problem and click Deploy.

Where the files live

A volume is a folder on the disk of the server the service runs on. It has no size limit of its own and shares the disk with everything else on that server.

Volumes aren't part of Harblet's backups. If the server's disk fails, the files are gone. Keep copies of files you can't lose, for example with the app's own backup or in external storage such as S3.

Remove a volume

Click the trash button of the volume and confirm with Remove volume, then click Deploy. Harblet deletes the volume's files once the next deployment has succeeded. This can't be undone.

Deleting the service deletes its volumes and their files too.

Errors

MessageWhat to do
Enter a path like /data, without spaces or a slash at the endUse the full path of the folder, starting with /.
This path already has a volume.Each folder can have one volume.
Set the service to one instance first. A volume lives on one server.Set Instances to 1 under Settings, then add the volume.
Remove the service's volumes to run more than one instance.A service with volumes runs as one instance.
Copyright © 2026 Harblet