Skip to content

Commit df0c7d1

Browse files
committed
Enhance development environment with updated devcontainer configuration and Docker setup
1 parent e220d13 commit df0c7d1

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.devcontainer/python-api-server/devcontainer.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"customizations": {
88
"codespaces": {
99
"openFiles": [
10-
"/planventure-api/app.py"
10+
"app.py"
1111
]
1212
},
1313
"vscode": {
@@ -31,5 +31,11 @@
3131
}
3232
},
3333
"postCreateCommand": "pip install -r requirements.txt",
34-
"forwardPorts": [5000]
34+
"forwardPorts": [5000],
35+
"portsAttributes": {
36+
"5000": {
37+
"label": "Flask API",
38+
"onAutoForward": "notify"
39+
}
40+
}
3541
}

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@ version: '3.8'
22

33
services:
44
backend:
5+
volumes:
6+
- ./planventure-api:/app
57
build:
68
context: ./planventure-api
79
dockerfile: Dockerfile
810
ports:
911
- "5000:5000"
1012
environment:
13+
- FLASK_APP=app.py
1114
- FLASK_ENV=development
1215
- DATABASE_URL=sqlite:///planventure.db

0 commit comments

Comments
 (0)