Skip to Content
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.

KindUse it for
VolumeUploads and data. The usual choice
FileA config file you write in the browser, up to 1 MiB
BindA folder that already exists on the server. Needs Bind server folders from an instance admin

Add storage

Pick the kind

Settings -> Storage -> Add storage, then Volume, File or Bind.

Settings -> Storage of a built app with nothing mounted yet, where a volume, a file or a server folder is added

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.
Settings -> Storage of a Compose app: the mounts its own compose file declares

What deleting the app removes

KindWhen you delete the app
VolumeErased
FileErased
BindLeft 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?

On this page