tabby/deployment/docker-compose.yml

30 lines
555 B
YAML
Raw Permalink Normal View History

version: '3.3'
services:
2023-04-05 15:13:34 +00:00
init:
image: tabbyml/tabby
container_name: init
user: root
volumes:
- ${DATA_VOLUME}
- ${HF_VOLUME}
command: chown -R 1000 /data
tabby:
image: tabbyml/tabby
container_name: tabby
environment:
2023-03-27 05:41:22 +00:00
MODEL_NAME: ${MODEL_NAME}
ports:
- "5000:5000"
volumes:
- ${DATA_VOLUME}
- ${HF_VOLUME}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000"]
interval: 2s
timeout: 2s
start_period: 1200s
2023-04-05 15:13:34 +00:00
depends_on:
- init