runway service create <name>
creates a new service on Runway. This command includes several options which are available as flags in the CLI:
short | long (with default) | description |
---|---|---|
-p |
--plan=dev-launch |
The plan |
-t |
--type=postgres |
Type of service |
-r |
--release=16 |
The version of the service, e.g. the Postgres or Valkey version |
Databases on Runway are generally priced the same way as applications. The selected plan determines the CPU, RAM, and disk limits for the service to run (refer to runway plan ls
for details).
runway service create db-test \
--plan=scale-m-launch \
--type=postgres \
--service-version=17
This sets up a highly available PostgreSQL cluster with both read-write and read-only instances, complete with backup functionality. The cluster is seamlessly accessible to any of your applications on Runway.
Once the service has started, you can interact with it using the following commands:
Automated backups are not included with every plan but are a standard feature at no additional cost for users on the Scale, Scale+, Pro, and Pro+ plans. These plans ensure your data is safeguarded with routine backups, giving you peace of mind and added resilience for your applications without any extra charges.