Vestiq / docker-compose.prod.yml
Hashii1729's picture
Refactor Docker setup: remove Ollama integration, update FastAPI service, enhance health checks, and improve README documentation
2e94196
raw
history blame contribute delete
930 Bytes
# Production overrides for docker-compose.yml
# Usage: docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
services:
fastapi:
restart: always
deploy:
resources:
limits:
memory: 4G # Increased for transformers models
reservations:
memory: 2G
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
environment:
- ENVIRONMENT=production
- LOG_LEVEL=info
# Add nginx reverse proxy for production
nginx:
image: nginx:alpine
container_name: fashion-analyzer-nginx
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./ssl:/etc/nginx/ssl:ro
depends_on:
- fastapi
networks:
- fashion-analyzer
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"