Install Remote-Containers VSCode extension. This will alllow you to connect to your docker dev environment through VSCode.
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...
Click From a predefined container configuration definition...
Click Python3 & Postgresql
Update: .devcontainer/devcontainer.json
Update: .devcontainer/docker-compose.yml
Update: .env
DATABASE_URL to