services:
  typesense:
    environment:
      - TYPESENSE_API_KEY
    image: typesense/typesense:27.1
    networks:
      - internal
    volumes:
      - ../.state/${COMPOSE_PROJECT_NAME:-funkwhale}/typesense/data:/data
    command: --data-dir /data --api-key=$${TYPESENSE_API_KEY} --enable-cors
