Configure an app
Persistent storage
Keep uploads, data and config files across deploys with a volume, a file or a server folder.
A container starts empty on every deploy. To keep uploads or data, mount storage in the app's Settings -> Storage.
| Kind | Use it for |
|---|---|
| Volume | Uploads and data. The usual choice |
| File | A config file you write in the browser, up to 1 MiB |
| Bind | A folder that already exists on the server. Needs Bind server folders from an instance admin |
Add storage
Fill in the source
- Volume: a Name, like
uploads. - File: a Path in Files, like
config.toml, then its content. - Bind: the Path on the server, like
/srv/media.
Set the path inside the app
For an app Deplo builds, uploads is enough: it lands in /app/uploads. For a Docker image or a
Compose service, type the full path, like /var/lib/app.
In a Compose app, Which service uses this data? picks the service.
Save
Click Save. The storage is mounted on the next deploy.
Tick Let the app read but not change it (ro) for a read-only mount.
Rows you did not add
- From docker-compose.yml: what your compose file mounts. Change it in the compose file.
- Declared by the image or Unnamed in the compose file: a folder where the image keeps
data, like
/var/lib/postgresql/data. Deplo keeps it as a Volume so it survives a deploy.
What deleting the app removes
| Kind | When you delete the app |
|---|---|
| Volume | Erased |
| File | Erased |
| Bind | Left on the server. Remove the folder yourself |
Good to know
- A deploy never deletes data. Removing a row stops mounting it; the data stays.
- An app backup includes its Volumes and Files, not a Bind. See Backups.
- For a database, create a managed database, not a Volume.
Something wrong? See Data, storage and backups.
Did this page help you?
