File size: 771 Bytes
af2c3f6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
version: '3.8'

services:
  model-selector:
    build:
      context: ..
      dockerfile: docker/Dockerfile
    container_name: hf-model-selector
    volumes:
      - ../deployments:/app/deployments
      - ~/.cache/huggingface:/home/appuser/.cache/huggingface
    environment:
      - HUGGINGFACE_TOKEN=${HUGGINGFACE_TOKEN}
      - CUDA_VISIBLE_DEVICES=${CUDA_VISIBLE_DEVICES:-}
    stdin_open: true
    tty: true
    command: ["sentiment analysis", "--deploy", "fastapi"]

  # Optional: Jupyter for development
  jupyter:
    image: jupyter/base-notebook:latest
    container_name: hf-jupyter
    ports:
      - "8888:8888"
    volumes:
      - ../:/home/jovyan/work
    environment:
      - JUPYTER_ENABLE_LAB=yes
    command: start-notebook.sh --NotebookApp.token=''