Vestiq / Makefile
Hashii1729's picture
Refactor Docker setup: remove Ollama integration, update FastAPI service, enhance health checks, and improve README documentation
2e94196
.PHONY: help build up down logs clean restart status health
# Default target
help:
@echo "Fashion Analyzer - Docker Compose Commands"
@echo ""
@echo "Available commands:"
@echo " build - Build all services"
@echo " up - Start all services"
@echo " down - Stop all services"
@echo " logs - View logs from all services"
@echo " clean - Stop services and remove volumes"
@echo " restart - Restart all services"
@echo " status - Show service status"
@echo " health - Check application health"
@echo " shell-api - Open shell in FastAPI container"
# Build all services
build:
docker-compose build
# Start all services
up:
docker-compose up -d
@echo "Services starting... Check status with 'make status'"
@echo "Web interface will be available at: http://localhost:7860"
# Stop all services
down:
docker-compose down
# View logs
logs:
docker-compose logs -f
# Clean everything (including volumes)
clean:
docker-compose down -v --remove-orphans
docker system prune -f
# Restart all services
restart: down up
# Show service status
status:
docker-compose ps
# Check application health
health:
@echo "Checking FastAPI health..."
@curl -s http://localhost:7860/health > /dev/null && echo "βœ… FastAPI: Healthy" || echo "❌ FastAPI: Unhealthy"
# Open shell in FastAPI container
shell-api:
docker-compose exec fastapi bash
# Development commands
dev-build:
docker-compose build --no-cache
dev-logs-api:
docker-compose logs -f fastapi