refactor: meilisearch 应用优化

This commit is contained in:
wanghe-fit2cloud 2023-08-02 18:17:06 +08:00
parent 542f435342
commit 46f1b74d4d
4 changed files with 44 additions and 43 deletions

View File

@ -1,6 +1,6 @@
additionalProperties: additionalProperties:
formFields: formFields:
- envKey: MEILI_HTTP_ADDR - envKey: PANEL_APP_PORT_HTTP
default: 7700 default: 7700
labelEn: Port labelEn: Port
labelZh: 端口 labelZh: 端口
@ -8,7 +8,6 @@ additionalProperties:
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- envKey: MEILI_MASTER_KEY - envKey: MEILI_MASTER_KEY
default: HmPEKZhcoANzRt3DTPhRQVRxPEVZw7m2TymKwKhs default: HmPEKZhcoANzRt3DTPhRQVRxPEVZw7m2TymKwKhs
labelEn: MasterKey labelEn: MasterKey
@ -18,19 +17,6 @@ additionalProperties:
random: true random: true
rule: paramComplexity rule: paramComplexity
type: password 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 - envKey: MEILI_NO_ANALYTICS
default: '' default: ''
labelEn: Meilisearch's built-in telemetry labelEn: Meilisearch's built-in telemetry
@ -38,7 +24,7 @@ additionalProperties:
edit: true edit: true
type: select type: select
values: values:
- label: disable - label: 开启
value: --no-analytics
- label: enable
value: '' value: ''
- label: 关闭
value: --no-analytics

View File

@ -1,16 +1,7 @@
version: "3" version: "3"
networks:
1panel-network:
external: true
services: services:
meilisearch: meilisearch:
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
deploy:
resources:
limits:
cpus: ${CPUS}
memory: ${MEMORY_LIMIT}
networks: networks:
- 1panel-network - 1panel-network
image: getmeili/meilisearch:v1.2.0 image: getmeili/meilisearch:v1.2.0
@ -20,9 +11,9 @@ services:
- /bin/meilisearch ${MEILI_NO_ANALYTICS} - /bin/meilisearch ${MEILI_NO_ANALYTICS}
labels: labels:
createdBy: Apps createdBy: Apps
restart: unless-stopped restart: always
ports: ports:
- ${HOST_IP}:${MEILI_HTTP_ADDR}:7700 - ${PANEL_APP_PORT_HTTP}:7700
environment: environment:
MEILI_CONFIG_FILE_PATH: /config/config.toml MEILI_CONFIG_FILE_PATH: /config/config.toml
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY} MEILI_MASTER_KEY: ${MEILI_MASTER_KEY}
@ -31,3 +22,6 @@ services:
- ./data:/meili_data - ./data:/meili_data
- ./dumps:/dumps - ./dumps:/dumps
- ./snapshots:/snapshots - ./snapshots:/snapshots
networks:
1panel-network:
external: true

View File

@ -0,0 +1,15 @@
⚡ A lightning-fast search engine that fits effortlessly into your apps, websites, and workflow 🔍
Meilisearch helps you shape a delightful search experience in a snap, offering features that work out-of-the-box to speed up your workflow.
🔥 [**Try it!**](https://where2watch.meilisearch.com/?utm_campaign=oss&utm_source=github&utm_medium=meilisearch&utm_content=demo-link) 🔥
## 📖 Documentation
You can consult Meilisearch's documentation at [https://www.meilisearch.com/docs](https://www.meilisearch.com/docs/?utm_campaign=oss&utm_source=github&utm_medium=meilisearch&utm_content=docs).
## 🚀 Getting started
For basic instructions on how to set up Meilisearch, add documents to an index, and search for documents, take a look at our [Quick Start](https://www.meilisearch.com/docs/learn/getting_started/quick_start?utm_campaign=oss&utm_source=github&utm_medium=meilisearch&utm_content=get-started) guide.
You may also want to check out [Meilisearch 101](https://www.meilisearch.com/docs/learn/getting_started/filtering_and_sorting?utm_campaign=oss&utm_source=github&utm_medium=meilisearch&utm_content=get-started) for an introduction to some of Meilisearch's most popular features.

View File

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