Spaces:
Running
Running
File size: 1,105 Bytes
596438d cfbf403 0775387 cfbf403 596438d 5308e9d a26a2bd cfbf403 596438d | 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 26 27 28 29 30 31 32 33 34 35 36 37 | services:
libretranslate:
image: libretranslate/libretranslate:latest
container_name: libretranslate
restart: unless-stopped
ports:
- "5000:5000"
environment:
- LT_LOAD_ONLY=en,hi
- LT_UPDATE_MODELS=false
healthcheck:
test: ["CMD-SHELL", "python3 -c \"import urllib.request; urllib.request.urlopen('http://localhost:5000/health')\""]
interval: 30s
timeout: 10s
retries: 5
start_period: 240s
deepshell:
build: .
container_name: deepshell
ports:
- "${PORT:-8001}:8001"
environment:
- GROQ_API_KEY=${GROQ_API_KEY}
- PROVIDER=${PROVIDER:-groq}
- OLLAMA_HOST=${OLLAMA_HOST:-http://172.17.0.1:11434}
- OLLAMA_MODEL=${OLLAMA_MODEL:-phi3:latest}
- CEREBRAS_API_KEY=${CEREBRAS_API_KEY}
- CEREBRAS_MODEL=${CEREBRAS_MODEL:-llama3.1-8b}
- LIBRETRANSLATE_URL=http://libretranslate:5000/translate
- PIPER_BINARY=/opt/piper/piper
- PIPER_VOICE_DIR=/opt/piper/voices
depends_on:
libretranslate:
condition: service_healthy
restart: unless-stopped
|