Add SurrealDB (#723)

* Add SurrealDB

* Format surrealdb.yml

* Remove yarn.lock
This commit is contained in:
Ismail D 2022-09-25 00:17:12 +02:00 committed by GitHub
parent 88d73d4734
commit e6c5d2be95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,43 @@
captainVersion: 4
services:
$$cap_appname-db:
volumes:
- $$cap_appname-db-data:/data
restart: always
environment:
USER: $$cap_db_user
PASS: $$cap_db_pass
caproverExtra:
notExposeAsWebApp: 'true'
dockerfileLines:
- FROM surrealdb/surrealdb:$$cap_surrealdb_version
- EXPOSE 8000
- CMD ["start", "--user", "$$cap_db_user", "--pass", "$$cap_db_pass", "--bind","0.0.0.0:8000", "file://data/srdb.db"]
caproverOneClickApp:
variables:
- id: $$cap_surrealdb_version
label: SurrealDB Version
defaultValue: '1.0.0-beta.7'
description: Check out their Docker page for the valid tags https://hub.docker.com/r/surrealdb/surrealdb/tags
validRegex: /^([^\s^\/])+$/
- id: $$cap_db_user
label: SurrealDB root user
description: ''
validRegex: /.{1,}/
- id: $$cap_db_pass
label: SurrealDB root password
description: ''
validRegex: /.{1,}/
instructions:
start: >-
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 CapRover, it will be available as srv-captain--YOUR_CONTAINER_NAME at port 8000 to other CapRover apps.
Enter your SurrealDB Configuration parameters and click on next. It will take about a minute for the process to finish.
end: >-
SurrealDB is deployed and available as srv-captain--$$cap_appname-db:8000 to other apps.
You can add a port mapping in case you need to use the database from outside the server.
displayName: SurrealDB
isOfficial: true
description: SurrealDB is an innovative NewSQL cloud database, suitable for serverless applications, jamstack applications, single-page applications, and traditional applications.
documentation: Taken from https://surrealdb.com/

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 KiB