FerryDocs

Persistent disks

A disk keeps the files of a service when a deploy replaces its container.

Edit on GitHub
Containerdeploy 1New containerdeploy 2Disk/data

The app writes files in /data. This folder is on the disk.

1 / 3

Each removes the container of a service, and the files in it. To keep files, give the service a . A disk is a Docker at a path that you choose, the .

Add a disk

Terminal
ferry create files --repo https://github.com/you/files --disk /data
ferry update api --disk /var/lib/api     # add or move the disk (next deploy)
ferry update api --disk ""               # stop mounting it (next deploy)

The rules

SubjectRule
Volume<prefix>-svc-<service id>-disk. Ferry creates it at the first use.
What staysThe data stays through deploys, restarts and server restarts.
Service typesWeb services, private services and background workers. Not static sites, not cron jobs.
Mount pathAn absolute path, and not /.
InstancesExactly 1. See Deploys with a disk.
SizeNo limit. The disk uses the Docker storage of the server.
DeletionFerry deletes the volume with the service. If you remove the disk setting, Ferry only stops the mount.

Back up disks yourself

Ferry makes no copy and no backup of a disk. See Production setup.

On this page