-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (38 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
39 lines (38 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# В CI задаём RUNNER_UID/RUNNER_GID — файлы в cache/models/checkpoints создаются от пользователя runner'а
services:
cvc-api:
image: cvc-api
build:
context: .
dockerfile: Dockerfile
user: "${RUNNER_UID:-0}:${RUNNER_GID:-0}"
container_name: cvc-api
ports:
- "20001:20001"
volumes:
- ./commands_classifier:/app/commands_classifier:ro
- ./tests:/app/tests:ro
- ./models:/app/models
- ./checkpoints:/app/checkpoints
- ./cache/huggingface:/app/.cache/huggingface
- ./db:/app/db
- ./config.yaml:/app/config.yaml:ro
- ./data:/app/data:ro
- ./ci:/app/ci:ro
environment:
- HF_HOME=/app/.cache/huggingface
- HF_TOKEN=${HF_TOKEN}
- HUGGING_FACE_HUB_TOKEN=${HF_TOKEN}
- HF_REPO_ID=${HF_REPO_ID}
restart: unless-stopped
networks:
- robot-services-network
healthcheck:
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:20001/v1/health', timeout=5).raise_for_status()"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
robot-services-network:
external: true