Skip to main content
Databases require persistent storage and prioritized memory for query performance.

Storage configuration

ParameterTypeDescription
Storage30 GBPersistent disk space for your database.
IOPS3000Provisioned throughput for high-performance databases.

Instance sizing

Choose an instance size that matches your dataset and concurrency needs.
revolte.yaml
revolte:
  version: "1.0"
  project: Demo-Project
  appName: "demo-app"
  env:
    production:
      branch: main
      services:
        rid_2:
          type: DATABASE
          name: db
          specifications:
            cpu: 2
            memory: 1
            storage: 30
            engine: postgres

Database Connection Injection

Provisioning a database service (e.g., named db under your YML services configuration) automatically injects the corresponding connection credentials into the environment variables of all other services within the same environment. This requires no manual secret configuration. The following environment variables are automatically injected at runtime:
DATABASE_HOST: '#{db.dbUrl}'
DATABASE_PORT: '#{db.dbPort}'
DATABASE_USERNAME: '#{db.dbUsername}'
DATABASE_PASSWORD: '#{db.dbPassword}'
DATABASE_NAME: '#{db.dbName}'
(Note: If your database service name is different from db, replace db with your exact service name in the references above.)

Next steps