From 2fb71095bb50c453ba25cf041a9d827307ac7379 Mon Sep 17 00:00:00 2001 From: TJ Date: Tue, 22 Oct 2024 18:24:34 +0900 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=F0=9F=A4=96=20zeabur=20template?= =?UTF-8?q?=20for=20Typesense?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zeabur-typesense.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 zeabur-typesense.yaml diff --git a/zeabur-typesense.yaml b/zeabur-typesense.yaml new file mode 100644 index 0000000..af42e0f --- /dev/null +++ b/zeabur-typesense.yaml @@ -0,0 +1,30 @@ +# yaml-language-server: $schema=https://schema.zeabur.app/template.json +apiVersion: zeabur.com/v1 +kind: Template +metadata: + name: Typesense +spec: + description: Fast, open source, typo-tolerant search engine + icon: "https://typesense.org/docs/images/typesense_logo.svg" + services: + - name: typesense + icon: https://typesense.org/docs/images/typesense_logo.svg + template: PREBUILT_V2 + spec: + source: + image: typesense/typesense:27.1 + ports: + - id: web + port: 8108 + type: HTTP + volumes: + - id: data + dir: /data + env: + TYPESENSE_API_KEY: + default: "" + expose: false + TYPESENSE_DATA_DIR: + default: /data + expose: false + configs: [] From 975c36096a08415f1627caeae298e155bc2c6487 Mon Sep 17 00:00:00 2001 From: TJ Date: Tue, 22 Oct 2024 18:42:52 +0900 Subject: [PATCH 2/2] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20zeabur=20cli?= =?UTF-8?q?=20readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zeabur/readme.md | 11 +++++++++++ .../typesense-template.yaml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 zeabur/readme.md rename zeabur-typesense.yaml => zeabur/typesense-template.yaml (96%) diff --git a/zeabur/readme.md b/zeabur/readme.md new file mode 100644 index 0000000..671d84b --- /dev/null +++ b/zeabur/readme.md @@ -0,0 +1,11 @@ +# Zeabur + +## Typesense Template + +```sh +npx zeabur template update -c FTAONK -f typesense-template.yaml +``` + +docs: + +- https://zeabur.com/docs/template/template-in-code diff --git a/zeabur-typesense.yaml b/zeabur/typesense-template.yaml similarity index 96% rename from zeabur-typesense.yaml rename to zeabur/typesense-template.yaml index af42e0f..bd6b590 100644 --- a/zeabur-typesense.yaml +++ b/zeabur/typesense-template.yaml @@ -22,7 +22,7 @@ spec: dir: /data env: TYPESENSE_API_KEY: - default: "" + default: "xyz" expose: false TYPESENSE_DATA_DIR: default: /data