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: []