Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions public/svgs/surrealdb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions templates/compose/surrealdb-with-tikv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# documentation: https://surrealdb.com/docs/surrealdb/installation/running/docker
# slogan: SurrealDB with TiKV distributed storage backend for production workloads.
# category: database
# tags: surrealdb, database, multi-model, tikv, distributed, production
# logo: svgs/surrealdb.svg
# port: 8000

services:
surrealdb:
image: surrealdb/surrealdb:v2.6.1
command: start --user root --pass ${SERVICE_PASSWORD_SURREALDB} tikv://pd:2379
environment:
- SERVICE_URL_SURREALDB_8000
depends_on:
tikv:
condition: service_healthy
healthcheck:
test: ["CMD", "surreal", "isready", "--endpoint", "http://127.0.0.1:8000"]
interval: 5s
timeout: 20s
retries: 10
pd:
image: pingcap/pd:v8.5.5
command:
- --name=pd
- --client-urls=http://0.0.0.0:2379
- --peer-urls=http://0.0.0.0:2380
- --data-dir=/data
- --initial-cluster=pd=http://pd:2380
volumes:
- pd-data:/data
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:2379/health || exit 1"]
interval: 5s
timeout: 20s
retries: 10
tikv:
image: pingcap/tikv:v8.5.5
command:
- --addr=0.0.0.0:20160
- --advertise-addr=tikv:20160
- --pd-endpoints=http://pd:2379
- --data-dir=/data
volumes:
- tikv-data:/data
depends_on:
pd:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:20180/status || exit 1"]
interval: 10s
timeout: 20s
retries: 10
20 changes: 20 additions & 0 deletions templates/compose/surrealdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# documentation: https://surrealdb.com/docs/surrealdb/installation/running/docker
# slogan: A scalable, distributed, collaborative, document-graph database for the realtime web.
# category: database
# tags: surrealdb, database, multi-model, sql, nosql, graph, realtime
# logo: svgs/surrealdb.svg
# port: 8000

services:
surrealdb:
image: surrealdb/surrealdb:v2.6.1
command: start --user root --pass ${SERVICE_PASSWORD_SURREALDB} rocksdb:///data
environment:
- SERVICE_URL_SURREALDB_8000
volumes:
- surrealdb-data:/data
healthcheck:
test: ["CMD", "surreal", "isready", "--endpoint", "http://127.0.0.1:8000"]
interval: 5s
timeout: 20s
retries: 10