kgrabko commited on
Commit
41632bb
·
verified ·
1 Parent(s): 05e8c8c

Create cluster/docker-compose.yml

Browse files
Files changed (1) hide show
  1. cluster/docker-compose.yml +112 -0
cluster/docker-compose.yml ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: '3.8'
2
+
3
+ services:
4
+ nginx:
5
+ image: nginx:alpine
6
+ container_name: jirack-nginx
7
+ ports:
8
+ - "7869:80"
9
+ volumes:
10
+ - ./nginx.conf:/etc/nginx/nginx.conf:ro
11
+ restart: unless-stopped
12
+ depends_on:
13
+ - jirack1
14
+ - jirack2
15
+ - jirack3
16
+ - jirack4
17
+ - jirack5
18
+ networks:
19
+ - jirack_net
20
+
21
+ jirack1:
22
+ image: cmsmanhattan/jirack_coder_7b_int8_qwenbase:latest
23
+ container_name: jirack-1
24
+ restart: unless-stopped
25
+ volumes:
26
+ - model_data:/app/model:ro
27
+ networks:
28
+ - jirack_net
29
+ deploy:
30
+ resources:
31
+ limits:
32
+ cpus: '2.0' # максимум 2 ядра
33
+ memory: 4G # 4 ГБ (модель ~2.5 ГБ + запас)
34
+ reservations:
35
+ cpus: '0.8'
36
+ memory: 2.5G
37
+
38
+ jirack2:
39
+ image: cmsmanhattan/jirack_coder_7b_int8_qwenbase:latest
40
+ container_name: jirack-2
41
+ restart: unless-stopped
42
+ volumes:
43
+ - model_data:/app/model:ro
44
+ networks:
45
+ - jirack_net
46
+ deploy:
47
+ resources:
48
+ limits:
49
+ cpus: '2.0'
50
+ memory: 4G
51
+ reservations:
52
+ cpus: '0.8'
53
+ memory: 2.5G
54
+
55
+ jirack3:
56
+ image: cmsmanhattan/jirack_coder_7b_int8_qwenbase:latest
57
+ container_name: jirack-3
58
+ restart: unless-stopped
59
+ volumes:
60
+ - model_data:/app/model:ro
61
+ networks:
62
+ - jirack_net
63
+ deploy:
64
+ resources:
65
+ limits:
66
+ cpus: '2.0'
67
+ memory: 4G
68
+ reservations:
69
+ cpus: '0.8'
70
+ memory: 2.5G
71
+
72
+ jirack4:
73
+ image: cmsmanhattan/jirack_coder_7b_int8_qwenbase:latest
74
+ container_name: jirack-4
75
+ restart: unless-stopped
76
+ volumes:
77
+ - model_data:/app/model:ro
78
+ networks:
79
+ - jirack_net
80
+ deploy:
81
+ resources:
82
+ limits:
83
+ cpus: '2.0'
84
+ memory: 4G
85
+ reservations:
86
+ cpus: '0.8'
87
+ memory: 2.5G
88
+
89
+ jirack5:
90
+ image: cmsmanhattan/jirack_coder_7b_int8_qwenbase:latest
91
+ container_name: jirack-5
92
+ restart: unless-stopped
93
+ volumes:
94
+ - model_data:/app/model:ro
95
+ networks:
96
+ - jirack_net
97
+ deploy:
98
+ resources:
99
+ limits:
100
+ cpus: '2.0'
101
+ memory: 4G
102
+ reservations:
103
+ cpus: '0.8'
104
+ memory: 2.5G
105
+
106
+ networks:
107
+ jirack_net:
108
+ driver: bridge
109
+
110
+ volumes:
111
+ model_data:
112
+ driver: local