feat(ai-service): container YOLO FastAPI pour détection plantes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4,15 +4,42 @@ services:
|
||||
volumes:
|
||||
- ./data:/data
|
||||
ports:
|
||||
- "8000:8000"
|
||||
- "8060:8060"
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- TZ=Europe/Paris
|
||||
- AI_SERVICE_URL=http://ai-service:8070
|
||||
- REDIS_URL=redis://redis:6379
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- redis
|
||||
- ai-service
|
||||
|
||||
ai-service:
|
||||
build: ./ai-service
|
||||
volumes:
|
||||
- yolo_models:/models
|
||||
environment:
|
||||
- MODEL_CACHE_DIR=/models
|
||||
restart: unless-stopped
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
restart: unless-stopped
|
||||
|
||||
frontend:
|
||||
build: ./frontend
|
||||
ports:
|
||||
- "80:80"
|
||||
- "8061:8061"
|
||||
depends_on:
|
||||
- backend
|
||||
environment:
|
||||
- TZ=Europe/Paris
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
yolo_models:
|
||||
redis_data:
|
||||
|
||||
Reference in New Issue
Block a user