2023-03-22 15:18:12 +00:00
|
|
|
version: '3.3'
|
|
|
|
|
|
|
|
|
|
services:
|
2023-03-25 09:39:40 +00:00
|
|
|
init:
|
|
|
|
|
image: tabbyml/tabby
|
|
|
|
|
container_name: tabby-init
|
2023-03-28 08:32:35 +00:00
|
|
|
command: dagu start --params=MODEL_NAME=${MODEL_NAME} ./tabby/tasks/init.yaml
|
2023-03-25 09:39:40 +00:00
|
|
|
volumes:
|
2023-03-27 05:41:22 +00:00
|
|
|
- ${HF_VOLUME}
|
2023-03-25 09:39:40 +00:00
|
|
|
|
2023-03-22 15:18:12 +00:00
|
|
|
server:
|
|
|
|
|
image: tabbyml/tabby
|
|
|
|
|
container_name: tabby-server
|
2023-03-25 04:20:29 +00:00
|
|
|
command: uvicorn tabby.server:app --host 0.0.0.0 --port 5000
|
2023-03-22 15:18:12 +00:00
|
|
|
environment:
|
2023-03-27 05:41:22 +00:00
|
|
|
MODEL_NAME: ${MODEL_NAME}
|
|
|
|
|
MODEL_BACKEND: triton
|
2023-03-28 08:32:35 +00:00
|
|
|
EVENTS_LOG_DIR: /logs/tabby-server
|
2023-03-22 15:18:12 +00:00
|
|
|
ports:
|
|
|
|
|
- "5000:5000"
|
|
|
|
|
volumes:
|
2023-03-27 05:41:22 +00:00
|
|
|
- ${HF_VOLUME}
|
2023-03-28 08:32:35 +00:00
|
|
|
- ${LOGS_VOLUME}
|
2023-03-25 09:39:40 +00:00
|
|
|
depends_on:
|
|
|
|
|
init:
|
|
|
|
|
condition: service_completed_successfully
|
2023-03-26 14:44:15 +00:00
|
|
|
triton:
|
|
|
|
|
condition: service_healthy
|
2023-03-22 15:18:12 +00:00
|
|
|
|
|
|
|
|
admin:
|
|
|
|
|
image: tabbyml/tabby
|
|
|
|
|
container_name: tabby-admin
|
2023-03-25 04:20:29 +00:00
|
|
|
command: streamlit run tabby/admin/Home.py
|
2023-03-22 15:18:12 +00:00
|
|
|
ports:
|
|
|
|
|
- "8501:8501"
|
|
|
|
|
|
2023-03-26 14:44:15 +00:00
|
|
|
triton:
|
|
|
|
|
image: tabbyml/fastertransformer_backend
|
|
|
|
|
container_name: tabby-triton
|
|
|
|
|
command: /scripts/triton.sh
|
|
|
|
|
shm_size: 1gb
|
2023-03-22 15:18:12 +00:00
|
|
|
volumes:
|
2023-03-26 14:44:15 +00:00
|
|
|
- ./scripts:/scripts
|
2023-03-27 05:41:22 +00:00
|
|
|
- ${HF_VOLUME}
|
2023-03-26 14:44:15 +00:00
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
reservations:
|
|
|
|
|
devices:
|
|
|
|
|
- driver: nvidia
|
|
|
|
|
count: all
|
|
|
|
|
capabilities: [gpu]
|
2023-03-25 06:44:46 +00:00
|
|
|
environment:
|
2023-03-27 05:41:22 +00:00
|
|
|
MODEL_NAME: ${MODEL_NAME}
|
2023-03-26 14:44:15 +00:00
|
|
|
depends_on:
|
|
|
|
|
init:
|
|
|
|
|
condition: service_completed_successfully
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:8002/metrics"]
|
|
|
|
|
interval: 2s
|
|
|
|
|
timeout: 2s
|
|
|
|
|
start_period: 120s
|
2023-03-28 08:32:35 +00:00
|
|
|
|
|
|
|
|
vector:
|
|
|
|
|
image: timberio/vector:0.28.1-alpine
|
|
|
|
|
container_name: tabby-vector
|
|
|
|
|
volumes:
|
|
|
|
|
- ./config/vector.toml:/etc/vector/vector.toml:ro
|
|
|
|
|
- ${LOGS_VOLUME}
|