Skip to content

Commit a8e93b2

Browse files
Merge pull request #593 from DefangLabs/jordan/compose-project-names
add project names and deploy resources to all samples
2 parents b03b328 + f8ca64f commit a8e93b2

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

compose.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1+
name: nodejs-express
12
services:
23
app:
34
restart: unless-stopped
45
build:
56
context: ./app
67
ports:
7-
- mode: ingress
8-
target: 3000
9-
published: 3000
8+
- mode: ingress
9+
target: 3000
10+
published: 3000
1011
deploy:
1112
resources:
1213
reservations:
1314
memory: 256M
1415
healthcheck:
15-
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
16+
test:
17+
- CMD
18+
- curl
19+
- -f
20+
- http://localhost:3000/

0 commit comments

Comments
 (0)