Create a database
In the console
Section titled “In the console”- Go to Databases and click to create a database.
- Choose Database Engine: PostgreSQL, MySQL, MariaDB, Redis or RabbitMQ.
- Database Configuration: enter a Database Name (or click Generate). The name becomes the actual database name, so it’s normalised to lowercase letters, digits and
_:my-awesome-databasebecomesmy_awesome_database. - Instance & Storage: choose a Deployment Region close to your app, and a storage size.
- Click Create Database.
The success screen shows the connection string and password.
The database is usually ready within a minute. If the screen says it’s still starting, give it a moment.
With the API
Section titled “With the API”curl -X POST "https://gw.dockhive.sh/api/v1/databases?region=eu" \ -H "Authorization: Bearer $DOCKHIVE_API_KEY" \ -H "Content-Type: application/json" \ -d '{"engine": "postgresql", "db_name": "app", "storage_limit_mb": 1024}'| Field | Required | Notes |
|---|---|---|
engine |
Yes | postgresql, mysql, mariadb, redis, rabbitmq or oracle |
db_name |
Yes | Starts with a letter or _; letters, digits and _; up to 63 characters |
storage_limit_mb |
No | 100 to 1,000,000 (1 TB). Default 1024 |
require_tls |
No | Default true |
The response includes db_id, db_host, db_port, db_user, db_password, db_name and a ready-made connection_uri. See API keys to create DOCKHIVE_API_KEY.
From the MCP server, use the create_database tool.