FerryDocs

Disk

The disk key gives a service a folder that stays between deploys.

Edit on GitHub
ferry.yaml
services:
  - type: web
    name: api
    disk:
      mountPath: /data     # required: where the disk shows in the container
      name: data           # accepted, not used
      sizeGB: 10           # accepted, not used

A keeps the files of a service when a deploy replaces its container. See Persistent disks.

The key

KeyTypeDefaultFerry setting and notes
diskmappingnone{ mountPath, name, sizeGB }
disk.mountPathstringrequireddisk_mount_path: the . It is an absolute path, and not /.
disk.name, disk.sizeGBFerry accepts them and ignores them.

Which services can have a disk

  • Only web services, private services and background workers.
  • The service must have 1 .

A change of disk starts a blueprint deploy. See What an apply deploys.

On this page