add meilisearch (#219)

This commit is contained in:
CyJaySong 2023-08-02 17:01:09 +08:00 committed by GitHub
parent 1f02e3fc86
commit dc4a6143eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 221 additions and 0 deletions

View File

@ -0,0 +1,131 @@
# This file shows the default configuration of Meilisearch.
# All variables are defined here: https://www.meilisearch.com/docs/learn/configuration/instance_options#environment-variables
db_path = "./data.ms"
# Designates the location where database files will be created and retrieved.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#database-path
env = "development"
# Configures the instance's environment. Value must be either `production` or `development`.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#environment
http_addr = "localhost:7700"
# The address on which the HTTP server will listen.
# master_key = "YOUR_MASTER_KEY_VALUE"
# Sets the instance's master key, automatically protecting all routes except GET /health.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#master-key
# no_analytics = true
# Deactivates Meilisearch's built-in telemetry when provided.
# Meilisearch automatically collects data from all instances that do not opt out using this flag.
# All gathered data is used solely for the purpose of improving Meilisearch, and can be deleted at any time.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#disable-analytics
http_payload_size_limit = "100 MB"
# Sets the maximum size of accepted payloads.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#payload-limit-size
log_level = "INFO"
# Defines how much detail should be present in Meilisearch's logs.
# Meilisearch currently supports six log levels, listed in order of increasing verbosity: `OFF`, `ERROR`, `WARN`, `INFO`, `DEBUG`, `TRACE`
# https://www.meilisearch.com/docs/learn/configuration/instance_options#log-level
# max_indexing_memory = "2 GiB"
# Sets the maximum amount of RAM Meilisearch can use when indexing.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#max-indexing-memory
# max_indexing_threads = 4
# Sets the maximum number of threads Meilisearch can use during indexing.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#max-indexing-threads
#############
### DUMPS ###
#############
dump_dir = "dumps/"
# Sets the directory where Meilisearch will create dump files.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#dump-directory
# import_dump = "./path/to/my/file.dump"
# Imports the dump file located at the specified path. Path must point to a .dump file.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#import-dump
ignore_missing_dump = false
# Prevents Meilisearch from throwing an error when `import_dump` does not point to a valid dump file.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#ignore-missing-dump
ignore_dump_if_db_exists = false
# Prevents a Meilisearch instance with an existing database from throwing an error when using `import_dump`.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#ignore-dump-if-db-exists
#################
### SNAPSHOTS ###
#################
schedule_snapshot = false
# Enables scheduled snapshots when true, disable when false (the default).
# If the value is given as an integer, then enables the scheduled snapshot with the passed value as the interval
# between each snapshot, in seconds.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#schedule-snapshot-creation
snapshot_dir = "snapshots/"
# Sets the directory where Meilisearch will store snapshots.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#snapshot-destination
# import_snapshot = "./path/to/my/snapshot"
# Launches Meilisearch after importing a previously-generated snapshot at the given filepath.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#import-snapshot
ignore_missing_snapshot = false
# Prevents a Meilisearch instance from throwing an error when `import_snapshot` does not point to a valid snapshot file.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#ignore-missing-snapshot
ignore_snapshot_if_db_exists = false
# Prevents a Meilisearch instance with an existing database from throwing an error when using `import_snapshot`.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#ignore-snapshot-if-db-exists
###########
### SSL ###
###########
# ssl_auth_path = "./path/to/root"
# Enables client authentication in the specified path.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#ssl-authentication-path
# ssl_cert_path = "./path/to/certfile"
# Sets the server's SSL certificates.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#ssl-certificates-path
# ssl_key_path = "./path/to/private-key"
# Sets the server's SSL key files.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#ssl-key-path
# ssl_ocsp_path = "./path/to/ocsp-file"
# Sets the server's OCSP file.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#ssl-ocsp-path
ssl_require_auth = false
# Makes SSL authentication mandatory.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#ssl-require-auth
ssl_resumption = false
# Activates SSL session resumption.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#ssl-resumption
ssl_tickets = false
# Activates SSL tickets.
# https://www.meilisearch.com/docs/learn/configuration/instance_options#ssl-tickets
#############################
### Experimental features ###
#############################
experimental_enable_metrics = false
# Experimental metrics feature. For more information, see: <https://github.com/meilisearch/meilisearch/discussions/3518>
# Enables the Prometheus metrics on the `GET /metrics` endpoint.
experimental_reduce_indexing_memory_usage = false
# Experimental RAM reduction during indexing, do not use in production, see: <https://github.com/meilisearch/product/discussions/652>

View File

@ -0,0 +1,44 @@
additionalProperties:
formFields:
- envKey: MEILI_HTTP_ADDR
default: 7700
labelEn: Port
labelZh: 端口
edit: true
required: true
rule: paramPort
type: number
- envKey: MEILI_MASTER_KEY
default: HmPEKZhcoANzRt3DTPhRQVRxPEVZw7m2TymKwKhs
labelEn: MasterKey
labelZh: 主密钥
edit: true
required: true
random: true
rule: paramComplexity
type: password
- envKey: MEILI_ENV
default: development
labelEn: environment
labelZh: 环境
edit: true
required: true
type: select
values:
- label: development
value: development
- label: production
value: production
- envKey: MEILI_NO_ANALYTICS
default: ' '
labelEn: Meilisearch's built-in telemetry
labelZh: Meilisearch 的内置遥测
edit: true
type: select
values:
- label: disable
value: --no-analytics
- label: enable
value: ' '

View File

@ -0,0 +1,33 @@
version: "3"
networks:
1panel-network:
external: true
services:
meilisearch:
container_name: ${CONTAINER_NAME}
deploy:
resources:
limits:
cpus: ${CPUS}
memory: ${MEMORY_LIMIT}
networks:
- 1panel-network
image: getmeili/meilisearch:v1.2.0
command:
- /bin/sh
- -c
- /bin/meilisearch ${MEILI_NO_ANALYTICS}
labels:
createdBy: Apps
restart: unless-stopped
ports:
- ${HOST_IP}:${MEILI_HTTP_ADDR}:7700
environment:
MEILI_CONFIG_FILE_PATH: /config/config.toml
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY}
volumes:
- ./config:/config
- ./data:/meili_data
- ./dumps:/dumps
- ./snapshots:/snapshots

View File

13
apps/meilisearch/data.yml Normal file
View File

@ -0,0 +1,13 @@
additionalProperties:
key: meilisearch #应用的 key ,仅限英文,用于在 Linux 创建文件夹
name: MeiliSearch #应用名称
tags:
- Tool #应用标签,可以有多个,请参照下方的标签列表
shortDescZh: 一个开源、快如闪电且高度相关的搜索引擎,可以轻松融入您的工作流程。 #应用中文描述不要超过30个字
shortDescEn: An open-source, lightning-fast, and hyper-relevant search engine that fits effortlessly into your workflow. #应用英文描述
type: tool #应用类型,区别于应用分类,只能有一个,请参照下方的类型列表
crossVersionUpdate: false #是否可以跨大版本升级
limit: 0 #应用安装数量限制0 代表无限制
website: https://www.meilisearch.com #官网地址
github: https://github.com/meilisearch/meilisearch #github 地址
document: https://www.meilisearch.com/docs #文档地址

BIN
apps/meilisearch/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB