Jae-Won Chung commited on
Commit
f0ad70f
1 Parent(s): 9276458

Add restart_policy to docker compose files

Browse files
deployment/docker-compose-0.yaml CHANGED
@@ -9,6 +9,8 @@ services:
9
  volumes:
10
  - /data/leaderboard/tgi-data:/data
11
  deploy:
 
 
12
  resources:
13
  reservations:
14
  devices:
@@ -26,6 +28,8 @@ services:
26
  - /data/leaderboard/tgi-data:/data
27
  - /data/leaderboard/weights:/weights
28
  deploy:
 
 
29
  resources:
30
  reservations:
31
  devices:
@@ -44,6 +48,8 @@ services:
44
  volumes:
45
  - /data/leaderboard/tgi-data:/data
46
  deploy:
 
 
47
  resources:
48
  reservations:
49
  devices:
@@ -61,6 +67,8 @@ services:
61
  - /data/leaderboard/tgi-data:/data
62
  - /data/leaderboard/weights:/weights
63
  deploy:
 
 
64
  resources:
65
  reservations:
66
  devices:
 
9
  volumes:
10
  - /data/leaderboard/tgi-data:/data
11
  deploy:
12
+ restart_policy:
13
+ condition: any
14
  resources:
15
  reservations:
16
  devices:
 
28
  - /data/leaderboard/tgi-data:/data
29
  - /data/leaderboard/weights:/weights
30
  deploy:
31
+ restart_policy:
32
+ condition: any
33
  resources:
34
  reservations:
35
  devices:
 
48
  volumes:
49
  - /data/leaderboard/tgi-data:/data
50
  deploy:
51
+ restart_policy:
52
+ condition: any
53
  resources:
54
  reservations:
55
  devices:
 
67
  - /data/leaderboard/tgi-data:/data
68
  - /data/leaderboard/weights:/weights
69
  deploy:
70
+ restart_policy:
71
+ condition: any
72
  resources:
73
  reservations:
74
  devices:
deployment/docker-compose-1.yaml CHANGED
@@ -11,6 +11,8 @@ services:
11
  volumes:
12
  - /data/leaderboard/tgi-data:/data
13
  deploy:
 
 
14
  resources:
15
  reservations:
16
  devices:
@@ -27,6 +29,8 @@ services:
27
  volumes:
28
  - /data/leaderboard/tgi-data:/data
29
  deploy:
 
 
30
  resources:
31
  reservations:
32
  devices:
 
11
  volumes:
12
  - /data/leaderboard/tgi-data:/data
13
  deploy:
14
+ restart_policy:
15
+ condition: any
16
  resources:
17
  reservations:
18
  devices:
 
29
  volumes:
30
  - /data/leaderboard/tgi-data:/data
31
  deploy:
32
+ restart_policy:
33
+ condition: any
34
  resources:
35
  reservations:
36
  devices: