- Bootstrap script for creating monorepo projects - FastAPI backend templates with uv, ruff, mypy, pytest - React frontend templates with TypeScript, ESLint, Prettier - Docker Compose setup with backend, frontend, and database - 9 development and CI scripts - Gitea Actions CI/CD workflows - Comprehensive documentation (8 files) - 45 template files for complete project structure - Automated verification script (all tests pass) - Based on coding-agent-rules standards
41 lines
742 B
Markdown
41 lines
742 B
Markdown
# Docker Configuration
|
|
|
|
This directory contains Dockerfiles for building container images.
|
|
|
|
## Files
|
|
|
|
- **backend.Dockerfile** - Backend service (FastAPI)
|
|
- **frontend.Dockerfile** - Frontend service (React)
|
|
|
|
## Building Images
|
|
|
|
### Backend
|
|
|
|
```bash
|
|
docker build -f deploy/docker/backend.Dockerfile -t backend:latest ./backend
|
|
```
|
|
|
|
### Frontend
|
|
|
|
```bash
|
|
docker build -f deploy/docker/frontend.Dockerfile -t frontend:latest ./frontend
|
|
```
|
|
|
|
## Running with Docker Compose
|
|
|
|
From the project root:
|
|
|
|
```bash
|
|
docker compose -f deploy/compose.yml up
|
|
```
|
|
|
|
## Production Builds
|
|
|
|
For production, consider:
|
|
|
|
1. Multi-stage builds to reduce image size
|
|
2. Non-root user for security
|
|
3. Health checks
|
|
4. Proper secret management
|
|
5. Optimized layer caching
|