yusufcalisir's picture
deploy: Hugging Face space upload
73ba4f5
Raw History Blame Contribute Delete
1.39 kB
# ==============================================================================
# Development Overrides — Hot-Reload, Live Volume Mounts, and Debug Configuration
# Usage:
# docker compose -f docker-compose.yml -f docker-compose.dev.yml up
# ==============================================================================
services:
backend:
build:
context: .
dockerfile: docker/Dockerfile.backend
command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
environment:
- APP_ENV=development
- APP_DEBUG=true
- LOG_LEVEL=DEBUG
- DATABASE_TYPE=postgres
- POSTGRES_HOST=postgres
- REDIS_HOST=redis
- KAFKA_BOOTSTRAP_SERVERS=kafka:9092
- KAFKA_ENABLED=true
volumes:
- ./backend:/app/backend
- ./backend/storage/datasets:/app/storage/datasets:ro
- ./backend/storage/datasets:/app/backend/storage/datasets:ro
- logs-data:/app/logs
ports:
- "8000:8000"
- "50051:50051"
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
command: npm run dev -- --host 0.0.0.0 --port 3000
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- VITE_API_URL=http://localhost:8000
- VITE_WS_URL=ws://localhost:8000
volumes:
storage-data:
logs-data: