# Deployment Configuration This directory contains deployment artifacts for the project. ## Structure - **compose.yml** - Docker Compose configuration for local development and deployment - **.env.example** - Example environment variables - **docker/** - Dockerfiles and container documentation ## Quick Start ### Local Development 1. Copy environment file: ```bash cp .env.example .env ``` 2. Start all services: ```bash docker compose -f deploy/compose.yml up ``` 3. Access services: - Backend: http://localhost:8000 - Frontend: http://localhost:3000 - API Docs: http://localhost:8000/docs - Database: localhost:5432 ### Stop Services ```bash docker compose -f deploy/compose.yml down ``` ### Rebuild Services ```bash docker compose -f deploy/compose.yml up --build ``` ### View Logs ```bash # All services docker compose -f deploy/compose.yml logs -f # Specific service docker compose -f deploy/compose.yml logs -f backend ``` ## Production Deployment For production deployments, consider: 1. Using separate compose files for different environments 2. Implementing proper secret management 3. Setting up reverse proxy (nginx/traefik) 4. Configuring SSL/TLS certificates 5. Setting up monitoring and logging 6. Implementing backup strategies ## Kubernetes (Optional) If deploying to Kubernetes, create a `k8s/` directory with: - Deployment manifests - Service definitions - ConfigMaps and Secrets - Ingress configuration