Skip to content

Commit ab7ab42

Browse files
Merge pull request #593 from DefangLabs/jordan/compose-project-names
add project names and deploy resources to all samples
2 parents 782da77 + 33f4dd0 commit ab7ab42

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

compose.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
name: python-implicit-gpu
12
services:
23
app:
34
restart: unless-stopped
@@ -7,12 +8,17 @@ services:
78
deploy:
89
resources:
910
reservations:
10-
cpus: "1.0"
11+
cpus: '1.0'
1112
memory: 2048M
1213
devices:
13-
- capabilities: ["gpu"]
14+
- capabilities:
15+
- gpu
1416
ports:
15-
- mode: ingress
16-
target: 5000
17+
- mode: ingress
18+
target: 5000
1719
healthcheck:
18-
test: ["CMD", "curl", "-f", "http://localhost:5000/"]
20+
test:
21+
- CMD
22+
- curl
23+
- -f
24+
- http://localhost:5000/

0 commit comments

Comments
 (0)