Storage
Declares persistent volumes. Value is a map of named volumes.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
path |
string |
yes | -- | Mount path inside the container |
size |
string |
no | -- | Minimum size hint (e.g. 512MB, 10GB) |
persistent |
boolean |
no | true |
Whether data survives restarts |
If you're declaring named storage, you probably want it to survive restarts — hence the default. Use persistent: false explicitly for ephemeral scratch space like caches.
storage:
uploads:
path: /app/uploads
size: 10GB
cache:
path: /app/cache
size: 512MB
persistent: falseReal-world examples: Ghost and Paperless use persistent storage for content. Browse all apps →