Skip to content

Commit 392156a

Browse files
Merge pull request #593 from DefangLabs/jordan/compose-project-names
add project names and deploy resources to all samples
2 parents 070d43a + ebcfcd6 commit 392156a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

compose.yaml

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

0 commit comments

Comments
 (0)