File size: 725 Bytes
058f1d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1e9eb0b
 
 
 
 
 
 
058f1d9
 
 
 
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
30
31
32
services:
  model_runner:
    build: 
      context: .
      dockerfile: Dockerfile

    environment:
      - APP_LISTEN_PORT=${APP_LISTEN_PORT}
      - MLFLOW_ENDPOINT=${MLFLOW_ENDPOINT}
      - HF_ACCESS_TOKEN=${HF_ACCESS_TOKEN}

    container_name: mlrunner
    restart: on-failure
    ports:
      - "${APP_LISTEN_PORT}:${APP_LISTEN_PORT}"
    volumes:
      - "./app:/app"
    entrypoint: ["/usr/bin/python3", "/app/main.py"]
    networks:
      - airflow_tracking_network
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]

networks:
  airflow_tracking_network:
    external: true