-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (53 loc) · 1.23 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
53
54
55
56
57
58
version: '3'
services:
fastllm-cuda:
build:
context: .
dockerfile: Dockerfile.cuda
image: fastllm:cuda
ports:
- "8000:8000"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
volumes:
- ./config:/app/config
environment:
- CUDA_VISIBLE_DEVICES=all
command: ["--mode", "server"]
fastllm-m1:
build:
context: .
dockerfile: Dockerfile.m1
ports:
- "8000:8000"
- "8001:8001"
deploy:
resources:
limits:
memory: 2G
reservations:
memory: 1G
environment:
- PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.
restart: unless-stopped
volumes:
- ./config:/app/config
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
- ./prometheus:/etc/prometheus
- prometheus-data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
volumes:
prometheus-data: