Skip to main content

Disks

Attach persistent storage to your services. Data survives redeploys and container restarts. Useful for file uploads, SQLite databases, or any stateful data.

railpush.yaml
services:
- type: web
name: my-app
runtime: node
disk:
name: uploads
mountPath: /var/data/uploads
sizeGB: 25
Single-instance only

Persistent disks can only be attached to services with a single instance. You cannot use disks with auto-scaled services.