CoolWasteAI / docker-compose.yml
Celvin
Prepare deployable AI API for competition and free hosting
12d831f
raw
history blame contribute delete
469 Bytes
version: "3.8"
services:
waste-classifier:
build: .
container_name: waste-classifier-api
ports:
- "7860:7860"
environment:
- PORT=7860
- MODEL_PATH=models/model.tflite
- SAVED_MODEL_PATH=models/waste_classifier_v1
volumes:
- ./models:/app/models:ro
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7860/health"]
interval: 30s
timeout: 10s
retries: 3