重构现代化 FastAPI 后端项目框架

This commit is contained in:
2026-01-21 16:50:57 +08:00
parent 9e06e68a15
commit c56f2fd1db
352 changed files with 176 additions and 70 deletions

View File

@@ -0,0 +1,23 @@
version: '3.8'
services:
api:
build:
context: ../..
dockerfile: infra/docker/Dockerfile
ports:
- "8000:8000"
volumes:
- ../../app:/app/app
- ../../resources:/app/resources
environment:
- PYTHONPATH=/app
depends_on:
- redis
redis:
image: redis:alpine
ports:
- "6379:6379"
# Add other services as needed (postgres, influxdb, timescaledb)