HNTAI / services /ai-service /docker-compose.yml
sachinchandrankallar's picture
changes for publishing the latest including generate_generic api
4156c57
Raw
History Blame
846 Bytes
version: '3.8'
services:
redis:
image: redis:7-alpine
container_name: ai-service-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 3
ai-service:
build:
context: .
dockerfile: Dockerfile.prod
image: ai-service:local
container_name: ai-service-local
depends_on:
redis:
condition: service_healthy
environment:
- PRELOAD_SMALL_MODELS=false
- PRELOAD_GGUF=false
- HF_HOME=/cache/huggingface
- REDIS_URL=redis://redis:6379/0
ports:
- "7860:7860"
volumes:
- ./model_cache:/cache/huggingface
restart: unless-stopped
volumes:
redis_data: