2023-08-02 17:01:09 +08:00
|
|
|
services:
|
|
|
|
meilisearch:
|
|
|
|
container_name: ${CONTAINER_NAME}
|
2024-08-28 13:48:50 +08:00
|
|
|
image: getmeili/meilisearch:v1.10.0
|
2023-08-02 18:17:06 +08:00
|
|
|
restart: always
|
2024-07-31 12:17:57 +08:00
|
|
|
networks:
|
|
|
|
- 1panel-network
|
2023-08-02 17:01:09 +08:00
|
|
|
ports:
|
2023-08-02 18:17:06 +08:00
|
|
|
- ${PANEL_APP_PORT_HTTP}:7700
|
2023-08-02 17:01:09 +08:00
|
|
|
environment:
|
|
|
|
MEILI_CONFIG_FILE_PATH: /config/config.toml
|
|
|
|
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY}
|
|
|
|
volumes:
|
2024-07-31 12:17:57 +08:00
|
|
|
- ./config:/config
|
2023-08-02 17:01:09 +08:00
|
|
|
- ./data:/meili_data
|
|
|
|
- ./dumps:/dumps
|
2023-08-02 18:17:06 +08:00
|
|
|
- ./snapshots:/snapshots
|
2024-07-31 12:17:57 +08:00
|
|
|
command: >
|
|
|
|
sh -c '
|
|
|
|
if [ "${MEILI_NO_ANALYTICS}" = "true" ]; then
|
|
|
|
/bin/meilisearch
|
|
|
|
else
|
|
|
|
/bin/meilisearch --no-analytics
|
|
|
|
fi'
|
|
|
|
labels:
|
|
|
|
createdBy: Apps
|
2023-08-02 18:17:06 +08:00
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|