Skip to content

Commit 42d6d26

Browse files
Merge pull request #593 from DefangLabs/jordan/compose-project-names
add project names and deploy resources to all samples
2 parents a433f52 + 4a289fe commit 42d6d26

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,17 +1,22 @@
1+
name: python-openai
12
services:
23
app:
34
restart: unless-stopped
45
build:
56
context: ./app
67
dockerfile: Dockerfile
78
ports:
8-
- mode: ingress
9-
target: 5000
9+
- mode: ingress
10+
target: 5000
1011
environment:
11-
- OPENAI_KEY
12+
- OPENAI_KEY
1213
deploy:
1314
resources:
1415
reservations:
1516
memory: 256M
1617
healthcheck:
17-
test: ["CMD", "curl", "-f", "http://localhost:5000/"]
18+
test:
19+
- CMD
20+
- curl
21+
- -f
22+
- http://localhost:5000/

0 commit comments

Comments
 (0)