Skip to content

Commit 9a6f337

Browse files
committed
rm untitle checkpoint, add resource definitions, setup local db to extend prod
1 parent 92496a0 commit 9a6f337

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

samples/jupyter-postgres/compose.dev.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ services:
1010
- ./jupyter/notebooks:/home/jovyan/work
1111

1212
db:
13-
image: postgres:14
13+
extends:
14+
service: db
15+
file: compose.yaml
1416
environment:
1517
POSTGRES_PASSWORD: password
16-
ports:
17-
- "5432:5432"
1818
volumes:
1919
- postgres_data:/var/lib/postgresql/data
2020

samples/jupyter-postgres/compose.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ services:
88
- mode: ingress
99
target: 8888
1010
published: 8888
11+
deploy:
12+
resources:
13+
limits:
14+
cpus: '1.0'
15+
memory: 1G
1116
environment:
1217
JUPYTER_TOKEN:
1318
POSTGRES_PASSWORD:
@@ -20,6 +25,10 @@ services:
2025
db:
2126
image: postgres:14
2227
x-defang-postgres: true
28+
ports:
29+
- mode: host
30+
target: 5432
31+
published: 5432
2332
healthcheck:
2433
test: ["CMD-SHELL", "pg_isready -U postgres"]
2534
environment:

samples/jupyter-postgres/jupyter/notebooks/.ipynb_checkpoints/Untitled-checkpoint.ipynb

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)