ml_deploy / docker-compose.yaml
gpicciuca's picture
Update missing documentation
1e9eb0b
raw
history blame contribute delete
725 Bytes
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