Add initial project files for Soil Water Balance Model including Docker setup, deployment scripts, API implementation, and data files

This commit is contained in:
张鑫
2025-12-16 11:42:36 +08:00
parent ad6c32a81f
commit 09e38e7350
18 changed files with 4497 additions and 0 deletions

19
docker-compose.yml Normal file
View File

@@ -0,0 +1,19 @@
version: '3.8'
services:
soil-water-model:
build: .
ports:
- "8000:8000"
environment:
- PYTHONUNBUFFERED=1
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
# Optional: Mount data directory for live updates (development only)
- ./data:/app/data:ro