Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

refactore(service): typsense

peaklabs-devaf60ffb7e0cf
diff --git a/public/svgs/typesense.png b/public/svgs/typesense.png
new file mode 100644
index 0000000000..ba91aa2dab
Binary files /dev/null and b/public/svgs/typesense.png differ
diff --git a/public/svgs/typesense.webp b/public/svgs/typesense.webp
deleted file mode 100644
index e1e3acd1fe..0000000000
Binary files a/public/svgs/typesense.webp and /dev/null differ
diff --git a/templates/compose/typesense.yaml b/templates/compose/typesense.yaml
index 32e41ff788..443d00df27 100644
--- a/templates/compose/typesense.yaml
+++ b/templates/compose/typesense.yaml
@@ -1,21 +1,26 @@
# documentation: https://typesense.org/docs
# slogan: Cutting-edge, in-memory search engine for mere mortals. Knowledge of rocket science optional.
# tags: search, search-engine, search-api, elasticsearch-alternative
-# logo: svgs/typesense.webp
+# logo: svgs/typesense.png
# port: 8108
services:
typesense:
image: typesense/typesense:28.0
- restart: on-failure
environment:
- SERVICE_FQDN_TYPESENSE_8108
- - TYPESENSE_ENABLE_CORS=true
+ - TYPESENSE_ENABLE_CORS=${TYPESENSE_ENABLE_CORS:-true}
- TYPESENSE_DATA_DIR=/data
- - TYPESENSE_API_KEY=${SERVICE_TYPESENSE_KEY:-xyz}
+ - TYPESENSE_API_KEY=${TYPESENSE_API_KEY:-xyz}
volumes:
- - 'typesense_data:/data'
+ - typesense_data:/data
healthcheck:
- test: [CMD, bash, -c, "exec 3<>/dev/tcp/localhost/8108 && printf 'GET /health HTTP/1.1\\r\\nConnection: close\\r\\n\\r\\n' >&3 && head -n1 <&3 | grep '200' && exec 3>&-"]
+ test:
+ [
+ CMD,
+ bash,
+ -c,
+ "exec 3<>/dev/tcp/localhost/8108 && printf 'GET /health HTTP/1.1\\r\\nConnection: close\\r\\n\\r\\n' >&3 && head -n1 <&3 | grep '200' && exec 3>&-",
+ ]
retries: 5
timeout: 7s