-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
52 lines (49 loc) · 1.06 KB
/
docker-compose.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
version: "3.5"
networks:
ai-docks-net:
driver: bridge
services:
ai-docks-service:
volumes:
- ./api:/app/:rw
- ./api/models/emb:/app/models/emb:rw
- ./api/models/rr:/app/models/rr:rw
- ./api/models/llm:/app/models/llm:rw
- ../primsa-ai/training/app/models/:/fine-tunes
- hf-cache:/.hf-cache
deploy:
replicas: 1
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
runtime: nvidia
ipc: host
tty: true # enable colorized logs
env_file:
- .env
container_name: ai-docks
build:
context: .
dockerfile: Dockerfile
ports:
- 8723:80
networks:
- ai-docks-net
environment:
- NVIDIA_VISIBLE_DEVICES=all
- HF_HOME=/.hf-cache
logging:
options:
max-size: "100m"
max-file: "10"
healthcheck:
test: ["CMD", "curl", "-f", "http://ai-docks:80/"]
interval: 1m
timeout: 20m
retries: 20
volumes:
hf-cache:
driver: local