feat(docker): add procurement-bot service with Groq STT and compose integration

This commit is contained in:
2026-09-29 00:04:56 +03:30
parent 57e0e51c16
commit dc31f837fd
2 changed files with 41 additions and 0 deletions
+2
View File
@@ -30,6 +30,8 @@ frontend/.env
scratch/ scratch/
v1.2 - Copy/ v1.2 - Copy/
inv dash/ inv dash/
bot/
voice/
# ---- Machine-local compose overrides (LAN phone access, etc.) ---- # ---- Machine-local compose overrides (LAN phone access, etc.) ----
docker-compose.override.yml docker-compose.override.yml
+39
View File
@@ -208,6 +208,7 @@ services:
mem_limit: 768m mem_limit: 768m
api: api:
image: v15-api:latest
build: build:
context: ./backend context: ./backend
dockerfile: Dockerfile dockerfile: Dockerfile
@@ -276,6 +277,7 @@ services:
mem_limit: 768m mem_limit: 768m
frontend: frontend:
image: v15-frontend:latest
build: build:
context: ./frontend context: ./frontend
args: args:
@@ -311,6 +313,43 @@ services:
restart: unless-stopped restart: unless-stopped
mem_limit: 128m mem_limit: 128m
bot:
image: v15-bot:latest
build:
context: ./bot
dockerfile: Dockerfile
container_name: procurement-bot
volumes:
- ./bot/app:/srv/bot/app
environment:
PROCUREMENT_BOT_BOT_TOKEN: ${BALE_BOT_TOKEN:-1354444845:yhVMnKZBFuKaU3UW5fP1bHmknEHx99mipWw}
PROCUREMENT_BOT_BALE_API_BASE: ${BALE_API_BASE:-https://tapi.bale.ai}
PROCUREMENT_BOT_API_BASE_URL: http://api:8000/api/v1
PROCUREMENT_BOT_DATABASE_URL: postgresql+asyncpg://postgres:${POSTGRES_PASSWORD:-postgres}@postgres:5432/procurement
PROCUREMENT_BOT_AI_BASE_URL: ${AI_BASE_URL:-https://api.deepseek.com}
PROCUREMENT_BOT_AI_API_KEY: ${AI_API_KEY:-sk-a671eab15be846d494bf0839070a3b32}
PROCUREMENT_BOT_LLM_MODEL: ${AI_LLM_MODEL:-deepseek-flash}
PROCUREMENT_BOT_STT_MODEL: ${AI_STT_MODEL:-whisper-large-v3}
PROCUREMENT_BOT_STT_BASE_URL: ${AI_STT_BASE_URL:-https://api.groq.com/openai/v1}
PROCUREMENT_BOT_STT_API_KEY: ${AI_STT_API_KEY:-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}
PROCUREMENT_BOT_ADMIN_CHAT_IDS: ${BALE_ADMIN_CHAT_IDS:-1461166742,1839839922}
PROCUREMENT_BOT_SERVICE_TOKEN: ${BALE_SERVICE_TOKEN:-}
PROCUREMENT_BOT_FRONTEND_URL: ${APP_HOST:-http://localhost}
depends_on:
postgres:
condition: service_healthy
api:
condition: service_started
networks:
- default
restart: unless-stopped
mem_limit: 512m
networks: networks:
# شبکه‌ی عمومی: فقط ترافیک و سرویس‌های عمومی. postgres روی شبکه‌ی # شبکه‌ی عمومی: فقط ترافیک و سرویس‌های عمومی. postgres روی شبکه‌ی
# پیش‌فرض می‌ماند و از بیرون قابل دسترسی نیست. # پیش‌فرض می‌ماند و از بیرون قابل دسترسی نیست.