From 6d8354cc75a8a21893bee5eb70bf6da6f4d37602 Mon Sep 17 00:00:00 2001 From: Thaddeus Jiang Date: Tue, 22 Oct 2024 18:46:11 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20zeabur=20template=20for?= =?UTF-8?q?=20Typesense=20(#18)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: 🤖 zeabur template for Typesense * docs: ✏️ zeabur cli readme --- zeabur/readme.md | 11 +++++++++++ zeabur/typesense-template.yaml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 zeabur/readme.md create mode 100644 zeabur/typesense-template.yaml 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-template.yaml b/zeabur/typesense-template.yaml new file mode 100644 index 0000000..bd6b590 --- /dev/null +++ b/zeabur/typesense-template.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: "xyz" + expose: false + TYPESENSE_DATA_DIR: + default: /data + expose: false + configs: []