Skip to content

Instantly share code, notes, and snippets.

@drhema
Created February 2, 2025 09:28
Show Gist options
  • Save drhema/ac6d0099048ef5a9a1356957536ecd84 to your computer and use it in GitHub Desktop.
Save drhema/ac6d0099048ef5a9a1356957536ecd84 to your computer and use it in GitHub Desktop.
version: '3.8'
services:
typesense:
image: typesense/typesense:0.25.1
container_name: typesense
restart: unless-stopped
environment:
TYPESENSE_API_KEY: "xk2Lp5uQq9wKzF8nM3cB7vY4hR1jT6mX"
TYPESENSE_DATA_DIR: "/data"
TYPESENSE_API_PORT: "8108"
TYPESENSE_API_ADDRESS: "0.0.0.0"
TYPESENSE_ENABLE_CORS: "true"
TYPESENSE_CACHE_NUM_ENTRIES: "10000"
TYPESENSE_THREAD_POOL_SIZE: "8"
TYPESENSE_ENABLE_ACCESS_LOGGING: "true"
TYPESENSE_HEALTHY_READ_LAG: "1000"
TYPESENSE_HEALTHY_WRITE_LAG: "500"
ports:
- "8108:8108"
volumes:
- typesense_data:/data
networks:
- typesense_net
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "10"
networks:
typesense_net:
driver: bridge
volumes:
typesense_data:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment