8000 GitHub - batonogov/typesense: Production-ready Docker image for Typesense with built-in healthcheck
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

batonogov/typesense

Repository files navigation

Typesense Docker with Healthcheck

Tests Security Scan Release

Latest Release Downloads License

Overview

Production-ready Docker image for Typesense with built-in healthcheck

About

This project provides a Docker image based on the official Typesense search engine with added health monitoring capabilities. It's designed for production environments where container health monitoring is essential.

Key Features

  • πŸ₯ Built-in Healthcheck - Automatic health monitoring via /health endpoint
  • 🐳 Production Ready - Optimized for container orchestration systems
  • πŸ”’ Security Focused - Regular vulnerability scanning and signed images
  • πŸ—οΈ Multi-Platform - Supports AMD64 and ARM64 architectures
  • ⚑ Lightweight - Minimal overhead with only curl added for healthcheck

Quick Start

Docker Run

docker run -d \
  --name typesense \
  -p 8108:8108 \
  -e TYPESENSE_API_KEY=your-secret-key \
  -v typesense_data:/data \
  ghcr.io/batonogov/typesense:latest

Docker Compose

version: '3.8'
services:
  typesense:
    image: ghcr.io/batonogov/typesense:latest
    ports:
      - "8108:8108"
    environment:
      - TYPESENSE_API_KEY=your-secret-key
    volumes:
      - typesense_data:/data
    restart: unless-stopped

volumes:
  typesense_data:

Verify Setup

# Check health
curl http://localhost:8108/health

# Test API
curl -H "X-TYPESENSE-API-KEY: your-secret-key" \
     http://localhost:8108/collections

Configuration

Environment Variables

Variable Description Default Required
TYPESENSE_API_KEY API key for authentication - βœ…
TYPESENSE_DATA_DIR Data directory path /data ❌
TYPESENSE_LISTEN_PORT Server port 8108 ❌

Healthcheck

The container includes automatic health monitoring:

  • Endpoint: GET /health
  • Interval: Every 30 seconds
  • Timeout: 10 seconds
  • Retries: 3 attempts before marking unhealthy

Available Images

Tags

  • latest - Latest stable release only (excludes RC versions)
  • v29.0 - Specific stable version
  • v29.0.rc1 - Release candidates (no latest tag)
  • main - Development builds from main branch

Registries

# GitHub Container Registry (recommended)
ghcr.io/batonogov/typesense:latest     # Stable releases only
ghcr.io/batonogov/typesense:v29.0      # Specific stable version
ghcr.io/batonogov/typesense:v29.0.rc1  # Release candidate

Note: The latest tag is only assigned to stable releases (e.g., v29.0, v28.0). Release candidates and development builds do not receive the latest tag.

Development

Prerequisites

Available Commands

# Start development environment
task dev

# Run tests
task test

# Build and test locally
task build-test-container
task test-api

# View all commands
task --list

Documentation

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Typesense Team for the excellent search engine
  • Community contributors for feedback and improvements

⭐ Star this repo if you found it helpful!

About

Production-ready Docker image for Typesense with built-in healthcheck

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •  
0