
Deploy SurrealDB on Your Own Server
SurrealDB is an innovative NewSQL cloud database, suitable for serverless applications, jamstack applications, single-page applications, and traditional applications.
Want to deploy SurrealDB on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.
What is SurrealDB?
With an SQL-style query language, real-time queries with highly-efficient related data retrieval, advanced security permissions for multi-tenant access, and support for performant analytical workloads, SurrealDB is the next generation serverless database. After installation on Senate, it will be available as <service_name> at port 8000 to other Senate apps. Enter your SurrealDB Configuration parameters and click on next. It will take about a minute for the process to finish.
Self-Host SurrealDB
Follow these steps to deploy on your own server.
Install Docker
Skip this step if Docker is already installed on your server.
curl -fsSL https://get.docker.com | sh
Configure
Customize the settings below. Defaults work for most cases.
General
Deploy
Copy the configuration and run it on your server.
services:
surrealdb-db:
environment:
PASS: ""
USER: ""
volumes:
- surrealdb-db-data:/data
volumes:
surrealdb-db-data: {}
Then run:
docker compose up -d
Access
Once started, access your app at http://localhost:80
Why Self-Host SurrealDB?
Full Data Ownership
Your data stays on your servers. No third-party access.
No Monthly Fees
Pay only for your server. No per-seat or usage charges.
Complete Control
Customize, backup, and scale on your own terms.
Privacy & Compliance
Meet GDPR, HIPAA, or internal security requirements.
Technical Details
Want to go faster?
Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.
Install on any Linux server:
sh -c "$(curl -sSL https://get.senate.sh)"