Adding second worker
This commit is contained in:
@@ -40,6 +40,42 @@ services:
|
||||
TMP_ROOT: /tmpdl
|
||||
WHISPER_MODEL: large-v3
|
||||
WHISPER_PRECISION: int8
|
||||
WHISPER_LOG_SEGMENTS: ${WHISPER_LOG_SEGMENTS:-1}
|
||||
WHISPER_RESUME: ${WHISPER_RESUME:-1}
|
||||
WHISPER_PARTIAL_SAVE_EVERY_SEGS: ${WHISPER_PARTIAL_SAVE_EVERY_SEGS:-20}
|
||||
PYTHONPATH: /app
|
||||
JOB_TIMEOUT: ${JOB_TIMEOUT:-14400}
|
||||
JOB_TTL: ${JOB_TTL:-86400}
|
||||
RESULT_TTL: ${RESULT_TTL:-86400}
|
||||
FAILURE_TTL: ${FAILURE_TTL:-86400}
|
||||
volumes:
|
||||
- ${LIBRARY_HOST_DIR:-./library}:/library
|
||||
- ${TRANSCRIPTS_HOST_DIR:-./transcripts}:/transcripts
|
||||
- ${TMP_HOST_DIR:-./tmp}:/tmpdl
|
||||
- ${MODELS_HOST_DIR:-./models}:/root/.cache/huggingface
|
||||
depends_on: [meili, redis]
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "exit 0"]
|
||||
extra_hosts:
|
||||
- host.docker.internal:host-gateway
|
||||
|
||||
podx-worker-transcribe:
|
||||
build: ./app
|
||||
container_name: podx-worker-transcribe
|
||||
command: ["rq", "worker", "-u", "redis://redis:6379/0", "transcribe"]
|
||||
env_file: [.env]
|
||||
environment:
|
||||
MEILI_URL: http://meili:7700
|
||||
REDIS_URL: redis://redis:6379/0
|
||||
LIBRARY_ROOT: /library
|
||||
TRANSCRIPT_ROOT: /transcripts
|
||||
TMP_ROOT: /tmpdl
|
||||
WHISPER_MODEL: large-v3
|
||||
WHISPER_PRECISION: int8
|
||||
WHISPER_LOG_SEGMENTS: ${WHISPER_LOG_SEGMENTS:-1}
|
||||
WHISPER_RESUME: ${WHISPER_RESUME:-1}
|
||||
WHISPER_PARTIAL_SAVE_EVERY_SEGS: ${WHISPER_PARTIAL_SAVE_EVERY_SEGS:-20}
|
||||
PYTHONPATH: /app
|
||||
JOB_TIMEOUT: ${JOB_TIMEOUT:-14400}
|
||||
JOB_TTL: ${JOB_TTL:-86400}
|
||||
@@ -90,7 +126,7 @@ services:
|
||||
# - COOKIE_FILE=/config/cookies.txt
|
||||
# Optional: yt-dlp options (JSON). Example enables Android client fallback
|
||||
# - YTDL_OPTIONS={"extractor_args":{"youtube":{"player_client":"android"}}}
|
||||
- YTDL_OPTIONS={"extractor_args":{"youtube":{"player_client":"android"}},"extract_flat":"in_playlist","concurrent_fragment_downloads":1}
|
||||
- YTDL_OPTIONS={"extractor_args":{"youtube":{"player_client":"android"}},"extract_flat":"in_playlist","concurrent_fragment_downloads":1,"writesubtitles":true,"writeautomaticsub":true,"subtitleslangs":["en.*"],"convertsubs":"srt","writeinfojson":true,"writethumbnail":true,"converttumbnails":"jpg"}
|
||||
volumes:
|
||||
- ${LIBRARY_HOST_DIR:-./library}:/downloads
|
||||
# Optional cookies file on host → /config/cookies.txt inside container
|
||||
|
Reference in New Issue
Block a user