ReferenceBlueprint spec
Disk
The disk key gives a service a folder that stays between deploys.
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 usedA disk keeps the files of a service when a deploy replaces its container. See Persistent disks.
The key
| Key | Type | Default | Ferry setting and notes |
|---|---|---|---|
disk | mapping | none | { mountPath, name, sizeGB } |
disk.mountPath | string | required | disk_mount_path: the mount path. It is an absolute path, and not /. |
disk.name, disk.sizeGB | Ferry accepts them and ignores them. |
Which services can have a disk
- Only web services, private services and background workers.
- The service must have 1 instance.
A change of disk starts a blueprint deploy. See What an apply deploys.