41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
# DictIA — Cloud deployment (VPS + ASR Proxy GCP GPU)
|
|
#
|
|
# Usage:
|
|
# docker compose -f deployment/docker/docker-compose.cloud.yml up -d
|
|
#
|
|
# ASR is handled by the external asr-proxy (port 9090) which auto-starts
|
|
# a GCP GPU instance on demand. DictIA connects via host.docker.internal.
|
|
|
|
services:
|
|
dictia:
|
|
build:
|
|
context: ../..
|
|
dockerfile: Dockerfile
|
|
image: innova-ai/dictia:latest
|
|
container_name: dictia
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8899:8899"
|
|
env_file:
|
|
- ../../.env
|
|
environment:
|
|
- LOG_LEVEL=${LOG_LEVEL:-ERROR}
|
|
- ASR_BASE_URL=http://host.docker.internal:9090
|
|
volumes:
|
|
- ../../data/uploads:/data/uploads
|
|
- ../../data/instance:/data/instance
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
healthcheck:
|
|
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8899/health')"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 30s
|
|
networks:
|
|
- dictia-network
|
|
|
|
networks:
|
|
dictia-network:
|
|
driver: bridge
|