Configure

Volumes

A container's own disk starts fresh on every deploy. For uploads or anything else an app must keep, give it a volume: + New → Volume (pick the app), or click the service, Overview → Volume → Add volume — and type the folder inside the container the app writes to (e.g. /app/data). It shows under the app's card on the canvas. The service restarts with it mounted; from then on that folder survives deploys and restarts. One volume per app. Its size shows on the Metrics tab against your storage allowance, and it is archived nightly with the database backups.

Detach (or deleting the service) keeps the files on the host — attach a volume again and they come back. Over the API: "volume": {"mountPath": "/app/data"} on create (POST /api/v1/resources, /stacks), and PATCH /api/v1/resources/{name} with {"volume": {"mountPath": "/app/data"}} or {"volume": null}. Mount paths are absolute and never a system folder (/etc, /usr, …).

Something wrong or missing here? Tell us and a person will answer.