Persistent storage
Attach named storage volumes for stateful workloads, understand node pinning, and plan reliable backups.
Container filesystems reset whenever a deployment or restart replaces a task. Attach a named persistent volume to any directory that stores database files, uploads, or durable application state.
Attach a volume
- Open the application's Volumes tab.
- Enter a Name up to 64 characters starting with a letter or digit (letters, digits,
.,_,-allowed, for examplepostgres-data). - Enter a unique absolute container Mount path (such as
/var/lib/postgresql/dataor/app/uploads). - Save and run Deploy/Redeploy to mount the volume into the service.
[!WARNING] Mounting a volume over an existing image directory shadows files originally baked at that path. Keep application code in one directory (such as
/app) and writable data in a separate mount directory (/app/data).
Volume lifecycle matrix
| Operation | Data and volume behavior |
|---|---|
| Restart or redeploy with same volume name | Reuses the existing named volume and preserves files |
| Detach volume in settings and redeploy | Unmounts from the container while retaining data on disk |
| Reattach previously detached name to same app | Reconnects retained data on its pinned host node |
| Rename the volume | Provisions a brand-new empty volume; old data is not copied automatically |
| Delete the application | Attempts cleanup of configured volumes; export data beforehand |
[!CAUTION] Recreating a deleted application using the same display name generates a new application identity and will not reattach old orphaned volumes automatically.
Node placement and backups
Named local volumes pin the application to a single host node so routine rollouts keep reading the same local storage directory. Local volumes are not replicated across nodes:
- If a pinned node leaves the cluster or hardware fails, containers scheduled onto another node start with empty storage unless an administrator migrates volume data first.
- Formatio does not schedule database dumps or snapshot replication in the dashboard yet. Use logical exports (
pg_dump, S3 uploads, or snapshot tooling) pushed off-node and verify restores periodically.