appstore-1panel/apps/meilisearch/1.10.3/docker-compose.yml

29 lines
684 B
YAML
Raw Normal View History

2023-08-02 17:01:09 +08:00
services:
meilisearch:
container_name: ${CONTAINER_NAME}
image: getmeili/meilisearch:v1.10.3
2023-08-02 18:17:06 +08:00
restart: always
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:
- ./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
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