---
title: "Deploy Typesense"
description: "Fast open-source search engine with typo tolerance, API-key protected"
category: "Other"
url: https://railway.com/deploy/typesense-1
---

# Deploy Typesense

Fast open-source search engine with typo tolerance, API-key protected

**[Deploy Typesense on Railway](https://railway.com/template/typesense-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/typesense-1/manifest.json

- **Creator:** zer0person's Projects
- **Category:** Other
- **Total deploys:** 1

## Template content

### Typesense

- **Image:** typesense/typesense:29.0
- **Start command:** `/opt/typesense-server --data-dir /data --api-key "$TYPESENSE_API_KEY" --api-port 8108 --thread-pool-size 32 --enable-cors`
- **Public domain:** Yes

## Documentation

# Deploy and Host Typesense on Railway

[Typesense](https://github.com/typesense/typesense) is an open-source, typo-tolerant search engine: you index JSON documents into collections and query them over a simple REST API.

## About Hosting Typesense

This template runs the official `typesense/typesense:29.0` image with a persistent volume at `/data`, so collections and indexes survive redeploys. The server is protected by an admin API key that Railway generates for you: open the service's Variables tab and copy `TYPESENSE_API_KEY`, then send it in the `X-TYPESENSE-API-KEY` header (or use it to create scoped search-only keys). The health endpoint is `/health`. The server listens on port 8108 and is reachable at the generated public HTTPS domain.

## Common Use Cases

- Add instant search-as-you-type to a website or app
- Product, document and catalog search with filters and facets
- A self-hosted alternative to Algolia

## Dependencies for Typesense Hosting

- One service with a volume; nothing else

### Deployment Dependencies

- [Typesense on GitHub](https://github.com/typesense/typesense)
- [Typesense docs](https://typesense.org/docs/)
- [Docker image](https://hub.docker.com/r/typesense/typesense)

## Why Deploy Typesense on Railway?

Railway gives you a public HTTPS endpoint, a persistent volume and automatic restarts without a server to maintain. Copy the generated API key from the Variables tab and point your client at the service domain on port 443.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/typesense-1
