tabby/deployment/docker-compose.yml

31 lines
647 B
YAML
Raw Normal View History

version: '3.3'
services:
tabby:
image: tabbyml/tabby
container_name: tabby
shm_size: 1gb
environment:
2023-03-27 05:41:22 +00:00
MODEL_NAME: ${MODEL_NAME}
MODEL_BACKEND: triton
MODEL_REPLICA: ${MODEL_REPLICA:-1}
ports:
- "5000:5000"
- "8080:8080"
- "8501:8501"
volumes:
- ${DATA_VOLUME}
- ${HF_VOLUME}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000"]
interval: 2s
timeout: 2s
start_period: 1200s
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]