Catalog-AI / docker-compose.yml
gouri
prod
46ea0ef
Raw History Blame Contribute Delete
726 Bytes
version: '3.8'
services:
scraper-api:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- PORT=8000
- PYTHONUNBUFFERED=1
volumes:
# Mount results directory for persistence
- ./results:/app/results
- ./data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Optional: Add Redis for job queue (for production)
# redis:
# image: redis:7-alpine
# ports:
# - "6379:6379"
# volumes:
# - redis-data:/data
# restart: unless-stopped
# volumes:
# redis-data: