Files
tabbyAPI/docker/docker-compose.yml
TerminalMan 48d7674316 make docker-compose use prebuilt images
- Docker compose uses the prebuilt images produced by the GitHub action added in 872eeed581
2024-08-29 00:50:01 +01:00

26 lines
715 B
YAML

version: '3.8'
services:
tabbyapi:
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]