# Setting up a Docker Dev Environment for the Python Project Starter
1. **Install Remote-Containers VSCode extension. This will alllow you to connect to your docker dev environment through VSCode.** ![](https://i.imgur.com/MDrCa8E.png)
2. **Open up your command pallete(`command + shit + p` on mac and `ctrl + shift + p` on windows) and type in `Remote-Containers: Add Development Container Configuration Files...`** ![](https://i.imgur.com/NxKk7XX.png)
3. **Click `From a predefined container configuration definition...`**
![](https://i.imgur.com/Wjmx5xj.png)
4. **Click `Python3 & Postgresql`**
![](https://i.imgur.com/g90gUUD.png)
5. **Update: `.devcontainer/devcontainer.json`**
##### From:
```json=46
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [5000, 5432],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pip install --user -r requirements.txt",
```
##### To:
```json=46
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [5000, 5432, 3000],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pip install --user -r requirements.txt && pip install --user -r dev-requirements.txt",
```
6. **Update: `.devcontainer/docker-compose.yml`**
##### From:
```yaml=9
# [Choice] Python version: 3, 3.8, 3.7, 3.6
VARIANT: 3
```
##### To:
```yaml=9
# [Choice] Python version: 3, 3.8, 3.7, 3.6
VARIANT: 3.9
```
7. **Update: `.env` DATABASE_URL to**
```bash=
DATABASE_URL=postgresql://postgres:postgres@db
```