From 76d3842acbadbc59a58674ff5b6b11d54acc51ca Mon Sep 17 00:00:00 2001 From: Charles Wong Date: Tue, 10 Mar 2026 15:36:09 -0700 Subject: [PATCH] feat: add SurrealDB service template (#7642) --- templates/compose/surrealdb.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 templates/compose/surrealdb.yaml diff --git a/templates/compose/surrealdb.yaml b/templates/compose/surrealdb.yaml new file mode 100644 index 000000000..33bf50461 --- /dev/null +++ b/templates/compose/surrealdb.yaml @@ -0,0 +1,20 @@ +# documentation: https://surrealdb.com/docs +# slogan: SurrealDB — the ultimate multi-model database for tomorrow's applications. A scalable, distributed, collaborative document-graph database. +# category: database +# tags: database, nosql, graph, document, sql, realtime, surrealdb, multi-model +# logo: svgs/surrealdb.svg +# port: 8000 + +services: + surrealdb: + image: surrealdb/surrealdb:latest + command: start --user $SERVICE_USER_SURREALDB --pass $SERVICE_PASSWORD_SURREALDB file:/data/srdb.db + volumes: + - surrealdb-data:/data + environment: + - SERVICE_FQDN_SURREALDB_8000 + healthcheck: + test: ["CMD", "curl", "-f", "http://127.0.0.1:8000/health"] + interval: 5s + timeout: 10s + retries: 10