ct-segmentation-monai / docker-compose.yml
Hipps's picture
Commenting Files & Improved Streamlit Dashboard UI
a98e43e
Raw
History Blame Contribute Delete
739 Bytes
version: "3.8"
# Docker Compose file for the CT Segmentation App
# 1. Start the fastapi api
# 2. Start the mlflow tracking server
services:
#launch container from dockerfile in current directory
seg-api:
build: .
ports:
- "8000:8000"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
volumes:
- ./checkpoints:/app/checkpoints
environment:
- NVIDIA_VISIBLE_DEVICES=all
# track experiments with mlflow, store data in mlruns directory
mlflow:
image: ghcr.io/mlflow/mlflow:latest
ports:
- "5000:5000"
command: mlflow server --host 0.0.0.0
volumes:
- ./mlruns:/mlruns