Skip to content

Commit 1bb3d89

Browse files
Merge pull request #593 from DefangLabs/jordan/compose-project-names
add project names and deploy resources to all samples
2 parents a2b3a49 + 807bf33 commit 1bb3d89

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

compose.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1+
name: django
12
services:
23
django:
34
restart: unless-stopped
45
build:
56
context: ./app
67
dockerfile: Dockerfile
78
ports:
8-
- mode: ingress
9-
target: 8000
10-
# published: 8000 # uncomment for local dev
9+
- mode: ingress
10+
target: 8000
1111
environment:
12-
- DEBUG=False # set to "True" for local dev
13-
#deploy:
14-
# resources:
15-
# reservations:
16-
# memory: 256M
12+
- DEBUG=False
13+
deploy:
14+
resources:
15+
reservations:
16+
cpus: '0.5'
17+
memory: 512M

0 commit comments

Comments
 (0)