mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-13 13:41:24 +00:00
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
services:
|
|
meilisearch:
|
|
image: getmeili/meilisearch:v1.54.3
|
|
restart: unless-stopped
|
|
ports:
|
|
- "7869:7700"
|
|
environment:
|
|
MEILI_ENV: development
|
|
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY:-change-me-now}
|
|
volumes:
|
|
- ./data/meili:/meili_data
|
|
|
|
scene-search:
|
|
build:
|
|
context: .
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
SCENE_API_HOST: 0.0.0.0
|
|
DATA_DIR: /app/data
|
|
MEILI_URL: http://meilisearch:7700
|
|
JELLYFIN_URL: ${JELLYFIN_DOCKER_URL:-http://host.docker.internal:8096}
|
|
HF_HOME: /app/data/huggingface
|
|
ports:
|
|
- "${SCENE_API_PORT:-8097}:${SCENE_API_PORT:-8097}"
|
|
volumes:
|
|
- ./data:/app/data
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
depends_on:
|
|
- meilisearch
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- driver: nvidia
|
|
count: 1
|
|
capabilities: [gpu]
|
|
healthcheck:
|
|
test:
|
|
- CMD-SHELL
|
|
- "curl -fsS http://127.0.0.1:${SCENE_API_PORT:-8097}/api/health >/dev/null || exit 1"
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 60s
|