cawncade-ai / docker-compose.yml
Nawaz-khan-droid
Initial commit for CAWNCADE AI
9882838
# CAWNCADE AI - Docker Compose
# Start the full stack: docker-compose up -d
version: "3.9"
services:
# Backend API (FastAPI)
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: cawncade-backend
ports:
- "8000:8000"
env_file:
- ./backend/.env
environment:
- DATABASE_URL=sqlite:///./data/cawncade.db
- ENVIRONMENT=production
volumes:
- backend-data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import httpx; httpx.get('http://localhost:8000/health')"]
interval: 30s
timeout: 10s
retries: 3
# Frontend (React + Nginx)
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: cawncade-frontend
ports:
- "80:80"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
volumes:
backend-data: