-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
25 lines (23 loc) · 924 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
25 lines (23 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
services:
audioscript:
build: .
volumes:
- whisper_models:/root/.cache/huggingface
- amicoscript_settings:/root/.amicoscript
# Lets the container reach an LLM running on the host — Ollama, LM Studio,
# Unsloth Studio. Docker Desktop defines host.docker.internal on its own; on
# Linux it does not exist unless mapped like this, which is why pointing
# AmicoScript at "localhost:11434" from a container never worked there.
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- PYTHONUNBUFFERED=1
- HF_TOKEN=${HF_TOKEN:-}
# Mirror the sys.path insertion that run.py performs in venv mode so that
# short-name imports (state, pipeline, …) and 'from backend import X'
# both resolve correctly inside the container.
- PYTHONPATH=/app/backend
restart: unless-stopped
volumes:
whisper_models:
amicoscript_settings: