Skip to content

Data and storage ​

Updated: 18 November 2026

The file system is ephemeral ​

Every container has a writable file system, but it belongs to the instance, not to the service. It is gone when

  • you roll out a new deployment (new instance),
  • the app crashes and is restarted,
  • a rollback, stop/start or restart happens,
  • a server is maintained or fails and the platform starts the service elsewhere.

Use the file system only for temporary files and caches you can recreate at any time. What should persist belongs on a volume.

What the app writes outside a volume (/tmp, caches, log files) lives in the instance's memory and counts towards resources.memory_mb. In total at most 1 GB of such writes is possible per instance. If memory runs full, the instance ends with OOM_KILLED; for a large instance the 1 GB limit may hit first (the app then gets "no space left on device"). For larger amounts of data use a volume.

Volumes ​

A volume is persistent storage for a service. You name it in the contract under storage.volumes:

json
"storage": { "volumes": [ { "name": "data", "mount_path": "/var/lib/postgresql/data", "size_gb": 5 } ] }
  • At most 2 volumes per service, 1 to 100 GB each, €0.15 per GB and month as long as the volume exists.
  • The data persists across deployments, restarts, stop/start and rollbacks. A rollback resets the code, never the data.
  • A service with a volume is replaced on deployment: the old instance stops, then the new one starts. Expect a short interruption.
  • To grow it, raise size_gb and roll out again. Shrinking is not possible (VOLUME_SHRINK).
  • Removal: if you leave a volume out of the contract, the plan reports VOLUME_REMOVAL, and apply_deployment needs a person's approval in the portal (passkey). After that the volume is kept with all data for 7 days and costs nothing; list_volumes shows it with status: removed and delete_after. If it comes back into the contract in that time (or you roll back to a revision with the volume), it is back with its data. After that the platform deletes the volume and its backups; the name is free again.
  • list_volumes shows size, mount path and usage; the portal shows a project's volumes.
  • Whether volumes are currently available is reported by get_platform_info under volumes.available. Otherwise the plan rejects them with CAPABILITY_UNSUPPORTED.

Backups ​

  • Every volume is backed up daily and kept for 7 days. The most recent backup is always kept, even if it is older.
  • backup_volume (project, service, volume) backs up at once, for example before a migration. At most 6 times per volume and day.
  • The backup is a snapshot taken while running, i.e. crash-consistent: the data is as if the server had failed at that moment. Postgres, MySQL and Redis start cleanly from such a state. For applications that cannot handle this, also back up yourself, e.g. with pg_dump.
  • The backups are stored encrypted in Hetzner Object Storage in Helsinki, separate from the servers your services run on. They cost nothing extra.
  • list_volumes shows last_backup_at per volume and the backups with status, size and expiry date.
  • restore_volume (project, service, volume, backup_id) restores a backup. Because the current content of the volume is lost, a person must approve this in the portal with a passkey. Then the service stops, the server fills a new volume from the backup and swaps it in only when everything is unpacked; if that fails, the old volume stays unchanged. Afterwards the service starts again if it was running before. Tip: call backup_volume first, so the current state can be brought back as well.

Databases ​

Your own database in a container works with a volume. Postgres, MySQL or Redis put their data on the volume (for Postgres mount_path: /var/lib/postgresql/data); the other services reach them over the private network with connects_to and public: false. Limits: one instance, a short interruption on every deployment, daily backups, restore with approval.

  • First start: on its first start the database sets up its empty volume, which can take more than a minute. A service with a volume therefore gets 180 seconds of start-up time (health.grace_period_s) unless you set another value. With Postgres, a TCP check ("health": { "type": "tcp" }) only passes once the setup is finished.
  • Interrupted setup: if the first start was cut off anyway (HEALTH_CHECK_FAILED), the volume may be half set up. Postgres then starts but refuses connections from the other services, for example with no pg_hba.conf entry for host …. The cause is the volume, not the network: give the service a new volume with another name (the old one is kept for 7 days) as long as no data is on it yet.
  • Start order: if the database is listed under the app's connects_to, a new app instance only starts once the database is healthy, at most 3 minutes (private network). The app should still retry connections itself, since the database is briefly gone on each of its deployments.

For important production data, a managed database from an external provider is still the safer choice, preferably with a data center in Germany (Frankfurt, Nuremberg, Falkenstein) for short distances:

  • Connection over the internet, always with TLS (sslmode=require or verify-full).
  • Access with a user of its own with minimal rights.
  • Watch connection limits: several services each open a pool of their own.
  • For customer data: conclude a data processing agreement with the provider.

The same applies to Redis/Valkey, MongoDB, search engines and message queues.

Buckets (S3) ​

For file uploads, images, exports and the app's backups there are S3-compatible buckets per project: create_bucket creates one and gives endpoint and key to the services as secrets. The data lives in Hetzner Object Storage in Falkenstein (Germany), private, reachable via https://s3.helfinity.cloud with the project's key. Up to 5 buckets per project with 100 GB each, €0.02 per GB and month. Unlike volumes, buckets are not tied to a server: several services and jobs can use the same bucket, including services with scale-to-zero. Buckets are not backed up by the platform; what must exist more than once, the app stores a second time itself. Guide: use buckets, limits: limits.

Secrets ​

Connection data such as DATABASE_URL, passwords and API keys are set with set_secrets, never in env:

  1. set_secrets with project, service and set: { NAME: value } (at most 32 KB per value). Delete with delete: [NAME] in the same tool. The service does not need to exist yet.
  2. In the contract, list under services[].secrets the names the service should get. Only these are passed in as environment variables.
  3. Plan and roll out again. A change to a secret takes effect only with the next deployment.

The values are stored encrypted and can never be read again via MCP. list_secrets only shows name, version, fingerprint and time of change. The plan pins the current version of every secret; a rollback uses the versions of the revision back then. If a listed secret is not set, the plan fails with VALIDATION_FAILED. Known values are blacked out in your app's logs (best effort); the audit log contains only the names. How the values are protected and what is still missing is under security and isolation. Limits: what does not work (yet).

What is planned ​

  • Managed PostgreSQL per project: in progress, not bookable yet. A production runtime with volumes, managed PostgreSQL with backups and several instances is intended in the long run, but not scheduled.

What the platform stores about you ​

Projects, contracts, revisions, deployments, events and the audit log are stored in a PostgreSQL database of the platform in Germany, replicated synchronously to two sites. Your app's logs are kept for 7 days. Uploaded source archives until 24 hours after the first successful build (at most 7 days), built images as long as they belong to a revision.