File size: 773 Bytes
f61f6a3 6106435 f61f6a3 6106435 f61f6a3 6106435 f61f6a3 6106435 f61f6a3 6106435 | 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 | # Root-level docker-compose kept for local dev with local Redis
# For HuggingFace Spaces deployment, use the root Dockerfile
version: "3.9"
services:
backend:
build:
context: .
dockerfile: backend/Dockerfile
ports:
- "8000:8000"
env_file: ./backend/.env
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
worker:
build:
context: .
dockerfile: backend/Dockerfile
env_file: ./backend/.env
command: celery -A src.workers.celery_app.celery_app worker --loglevel=info --concurrency=1 --pool=solo
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://backend:8000
depends_on:
- backend
|