File size: 553 Bytes
7b60154
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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:
  api:
    image: job-matching-api
    build: .
    container_name: job-matching-api
    ports:
      - "7860:7860"
    # Docker compose sẽ tự động đọc biến môi trường từ file .env
    env_file:
      - .env
    # Ép chạy trên CPU để khớp với môi trường deploy
    environment:
      - DEVICE=cpu
    restart: unless-stopped
    # Ánh xạ thư mục cache ra ngoài host để không phải tải lại model mỗi lần restart
    volumes:
      - hf_cache:/app/cache

volumes:
  hf_cache: