version: '3.8'
services:
  backend:
    build: .
    command: uvicorn main:app --host 0.0.0.0 --reload --proxy-headers
    ports:
      - "8000:8000"
    working_dir: /app/src
    volumes:
      - ./src:/app/src
    depends_on:
      - redis
  
  redis:
    image: redis:alpine

  celery:
    build: .
    command: celery -A celery_config worker --loglevel=info
    volumes:
      - ./src:/app/src
    working_dir: /app/src
    depends_on:
      - redis