22 lines
444 B
YAML
22 lines
444 B
YAML
version: '3.8'
|
|
services:
|
|
tabbyapi:
|
|
build:
|
|
context: ..
|
|
dockerfile: ./docker/Dockerfile
|
|
args:
|
|
- DO_PULL=true
|
|
ports:
|
|
- "5000:5000"
|
|
environment:
|
|
- NAME=TabbyAPI
|
|
- NVIDIA_VISIBLE_DEVICES=all
|
|
volumes:
|
|
- ./models:/app/models
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- driver: nvidia
|
|
count: all
|
|
capabilities: [gpu]
|