Spaces:
Paused
Paused
File size: 1,024 Bytes
61fdf3d 7982767 61fdf3d 3aa30c2 61fdf3d | 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 38 39 40 41 42 43 44 | services:
- type: web
name: rag-api
env: python
plan: free
buildCommand: pip install -r requirements.txt && alembic upgrade head
startCommand: uvicorn app.main:app --host 0.0.0.0 --port $PORT
envVars:
- key: DATABASE_URL
fromDatabase:
name: rag-db
property: connectionString
- key: REDIS_URL
fromService:
type: redis
name: rag-redis
property: connectionString
- type: worker
name: rag-worker
env: python
plan: free
buildCommand: pip install -r requirements.txt
startCommand: celery -A app.workers.celery_app worker --loglevel=info
envVars:
- key: DATABASE_URL
fromDatabase:
name: rag-db
property: connectionString
- key: REDIS_URL
fromService:
type: redis
name: rag-redis
property: connectionString
- type: redis
name: rag-redis
plan: free
ipAllowList: []
databases:
- name: rag-db
plan: free
|