mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-07-18 09:37:34 +00:00
32 lines
943 B
YAML
32 lines
943 B
YAML
services:
|
|
tabbyapi:
|
|
# Uncomment this to build a docker image from source
|
|
#build:
|
|
# context: ..
|
|
# dockerfile: ./docker/Dockerfile
|
|
# # For CUDA 13.x builds, use ./docker/Dockerfile.cu13
|
|
|
|
# Comment this to build a docker image from source
|
|
image: ghcr.io/theroyallab/tabbyapi:latest
|
|
ports:
|
|
- "5000:5000"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://127.0.0.1:5000/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
environment:
|
|
- NAME=TabbyAPI
|
|
- NVIDIA_VISIBLE_DEVICES=all
|
|
volumes:
|
|
- ./models:/app/models # Change me
|
|
# - /path/to/config.yml:/app/config.yml # Change me
|
|
# - /path/to/api_tokens.yml:/app/api_tokens.yml # Change me
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- driver: nvidia
|
|
count: all
|
|
capabilities: [gpu]
|