File size: 466 Bytes
b4df929
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
version: '3.8'

services:
  classifier:
    build: .
    ports:
      - "7860:7860"
    environment:
      - USE_CUDA=false
      - HF_HOME=/app/.cache/huggingface
      - TORCH_HOME=/app/.cache/torch
      - TOKENIZERS_PARALLELISM=true
    volumes:
      - ./logs:/app/logs
      - ./model_cache:/app/.cache
    restart: unless-stopped
    deploy:
      resources:
        limits:
          cpus: '4'
          memory: 16G
        reservations:
          memory: 8G